DXFReaderNETControlAddArc Method (Vector3, Vector3, Vector3, Int16, String, String)
|
Adds a new arc to the current drawing specifing start point, end point and a pont on arc.
Namespace:
DXFReaderNET
Assembly:
DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax public EntityObject AddArc(
Vector3 StartPoint,
Vector3 MiddlePoint,
Vector3 EndPoint,
short ACIColor = 256,
string LayerName = "",
string LineTypeName = ""
)
Public Function AddArc (
StartPoint As Vector3,
MiddlePoint As Vector3,
EndPoint As Vector3,
Optional ACIColor As Short = 256,
Optional LayerName As String = "",
Optional LineTypeName As String = ""
) As EntityObject
public:
EntityObject^ AddArc(
Vector3 StartPoint,
Vector3 MiddlePoint,
Vector3 EndPoint,
short ACIColor = 256,
String^ LayerName = L"",
String^ LineTypeName = L""
)
member AddArc :
StartPoint : Vector3 *
MiddlePoint : Vector3 *
EndPoint : Vector3 *
?ACIColor : int16 *
?LayerName : string *
?LineTypeName : string
(* Defaults:
let _ACIColor = defaultArg ACIColor 256
let _LayerName = defaultArg LayerName ""
let _LineTypeName = defaultArg LineTypeName ""
*)
-> EntityObject
METHOD AddArc(
StartPoint AS Vector3,
MiddlePoint AS Vector3,
EndPoint AS Vector3,
ACIColor AS SHORT := 256,
LayerName AS STRING := "",
LineTypeName AS STRING := ""
) AS EntityObject
Parameters
- StartPoint
- Type: DXFReaderNETVector3
The start point of the arc. - MiddlePoint
- Type: DXFReaderNETVector3
A point of the arc. - EndPoint
- Type: DXFReaderNETVector3
The end point of the arc. - ACIColor (Optional)
- Type: SystemInt16
A number for 0 to 256 corresponding to the AutoCAD Color Index (0 = ByBlock; 256 = ByLayer. Default value = 256). - LayerName (Optional)
- Type: SystemString
The layer name. If omitted, or layername doesn't exist, the CurrentLayer will be used. - LineTypeName (Optional)
- Type: SystemString
The layer name. If omitted, or layername doesn't exist, , or layername doesn't exist, the CurrentLineTypeName will be used.
Return Value
Type:
EntityObjectThe new added
Arc.
Remarks The entity is added to the active layout.
Examples
Adds a new arc entity to the current drawing starting from (220, 160), passing from (300, 90) and ending at (440, 150) with ACI color = 5 (blue).
[C#]
Vector3 StartPoint = new Vector3(220, 160, 0);
Vector3 MiddlePoint = new Vector3(300, 90, 0);
Vector3 EndPoint = new Vector3(440, 150, 0);
dxfReaderNETControl1.AddArc(StartPoint, MiddlePoint, EndPoint, 5);
[Visual Basic]
Dim StartPoint As New Vector3(220, 160, 0)
Dim MiddlePoint As New Vector3(300, 90, 0)
Dim EndPoint As New Vector3(440, 150, 0)
DxfReaderNETControl1.AddArc(StartPoint, MiddlePoint, EndPoint, 5)
See Also