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 = ""
)
Public Function AddCircle (
FirstPoint As Vector3,
SecondPoint As Vector3,
ThirdPoint As Vector3,
Optional ACIColor As Short = 256,
Optional LayerName As String = "",
Optional LineTypeName As String = ""
) As EntityObject
public:
EntityObject^ AddCircle(
Vector3 FirstPoint,
Vector3 SecondPoint,
Vector3 ThirdPoint,
short ACIColor = 256,
String^ LayerName = L"",
String^ LineTypeName = L""
)
member AddCircle :
FirstPoint : Vector3 *
SecondPoint : Vector3 *
ThirdPoint : Vector3 *
?ACIColor : int16 *
?LayerName : string *
?LineTypeName : string
(* Defaults:
let _ACIColor = defaultArg ACIColor 256
let _LayerName = defaultArg LayerName ""
let _LineTypeName = defaultArg LineTypeName ""
*)
-> EntityObject
METHOD AddCircle(
FirstPoint AS Vector3,
SecondPoint AS Vector3,
ThirdPoint AS Vector3,
ACIColor AS SHORT := 256,
LayerName AS STRING := "",
LineTypeName AS STRING := ""
) AS EntityObject
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:
EntityObjectThe 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