Click or drag to resize

DXFReaderNETControlAddCircle Method (Vector3, Double, Int16, String, String)

Adds a new circle to the current drawing with center and radius.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax
public EntityObject AddCircle(
	Vector3 Center,
	double Radius,
	short ACIColor = 256,
	string LayerName = "",
	string LineTypeName = ""
)

Parameters

Center
Type: DXFReaderNETVector3
The center of the circle.
Radius
Type: SystemDouble
The radius of the circle in drawing's units.
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 linetype name. If omitted, or linetype doesn't exist, the CurrentLineTypeName will be used.

Return Value

Type: EntityObject
The new added Circle.
Remarks
The entity is added to the active layout.
Examples
Adds a new circle entity to the current drawing with center in (250, 10), radius = 140 with ACI color = 5 (blue).
[C#]

Vector3 Center = new Vector3(250, 10, 0);
dxfReaderNETControl1.AddCircle(Center, 140, 5);
[Visual Basic]

Dim Center As New Vector3(250, 10, 0)
DxfReaderNETControl1.AddCircle(Center, 140, 5)
See Also