DXFReaderNETControlAddArc Method (Vector3, Double, Double, Double, Int16, String, String)
|
Adds a new arc to the current drawing specifing center point, radius, start angle and end angle.
Namespace:
DXFReaderNET
Assembly:
DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax public EntityObject AddArc(
Vector3 Center,
double Radius,
double StartAngle,
double EndAngle,
short ACIColor = 256,
string LayerName = "",
string LineTypeName = ""
)
Public Function AddArc (
Center As Vector3,
Radius As Double,
StartAngle As Double,
EndAngle As Double,
Optional ACIColor As Short = 256,
Optional LayerName As String = "",
Optional LineTypeName As String = ""
) As EntityObject
public:
EntityObject^ AddArc(
Vector3 Center,
double Radius,
double StartAngle,
double EndAngle,
short ACIColor = 256,
String^ LayerName = L"",
String^ LineTypeName = L""
)
member AddArc :
Center : Vector3 *
Radius : float *
StartAngle : float *
EndAngle : float *
?ACIColor : int16 *
?LayerName : string *
?LineTypeName : string
(* Defaults:
let _ACIColor = defaultArg ACIColor 256
let _LayerName = defaultArg LayerName ""
let _LineTypeName = defaultArg LineTypeName ""
*)
-> EntityObject
METHOD AddArc(
Center AS Vector3,
Radius AS REAL8,
StartAngle AS REAL8,
EndAngle AS REAL8,
ACIColor AS SHORT := 256,
LayerName AS STRING := "",
LineTypeName AS STRING := ""
) AS EntityObject
Parameters
- Center
- Type: DXFReaderNETVector3
The center of the arc. - Radius
- Type: SystemDouble
The radius of the arc in drawing's units. - StartAngle
- Type: SystemDouble
The start angle in degree of the arc. - EndAngle
- Type: SystemDouble
The end angle in degree 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.
Examples
Adds a new arc entity to the current drawing with center in (250, 10), radius = 140, start angle = 30°, end angle = 156° and ACI color = 5 (blue).
[C#]
Vector3 Center = new Vector3(250, 10, 0);
dxfReaderNETControl1.AddArc(Center, 140, 30, 156, 5);
[Visual Basic]
Dim Center As New Vector3(250, 10, 0)
DxfReaderNETControl1.AddArc(Center, 140, 30, 156, 5)
See Also