Click or drag to resize

DXFReaderNETControlAddDonut Method

Adds a donut (filled ring) to the current drawing, as AutoCAD DONUT does. Implemented as a closed lightweight polyline of two semicircles with constant width.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.12.2
Syntax
public EntityObject AddDonut(
	Vector3 Center,
	double InsideDiameter,
	double OutsideDiameter,
	short ACIColor = 256,
	string LayerName = "",
	string LineTypeName = "",
	bool AddToDrawing = true
)

Parameters

Center
Type: DXFReaderNETVector3
Center of the donut in WCS.
InsideDiameter
Type: SystemDouble
Inside diameter (0 for a solid disk).
OutsideDiameter
Type: SystemDouble
Outside diameter; if smaller than the inside diameter the values are swapped.
ACIColor (Optional)
Type: SystemInt16
AutoCAD Color Index (0 = ByBlock; 256 = ByLayer).
LayerName (Optional)
Type: SystemString
Layer name; empty uses the current layer.
LineTypeName (Optional)
Type: SystemString
Linetype name; empty uses the current linetype.
AddToDrawing (Optional)
Type: SystemBoolean
If false, builds the entity without adding it to the document (rubber-band preview).

Return Value

Type: EntityObject
The created LwPolyline, or null if parameters are invalid.
See Also