Click or drag to resize

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

Adds a new circle to the current drawing passing from three points.

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

Parameters

FirstPoint
Type: DXFReaderNETVector3
The first point of the circle.
SecondPoint
Type: DXFReaderNETVector3
The second point of the circle.
ThirdPoint
Type: DXFReaderNETVector3
The third point of the circle.
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: EntityObject
The new added Circle.
Remarks
The entity is added to the active layout.
Examples
Adds a new circle entity to the current drawing passing from three points with ACI color = 4 (cyan).
[C#]

Vector3 Point1 = new Vector3(20, 20, 0);
Vector3 Point2 = new Vector3(100, 40, 0);
Vector3 Point3 = new Vector3(210, 130, 0);
dxfReaderNETControl1.AddCircle(Point1, Point2, Point3, 4);
[Visual Basic]

Dim Point1 As New Vector3(20, 20, 0)
Dim Point2 As New Vector3(100, 40, 0)
Dim Point3 As New Vector3(210, 130, 0)
DxfReaderNETControl1.AddCircle(Point1, Point2, Point3, 4)
See Also