Click or drag to resize

DXFReaderNETControlAddLightWeightPolyline Method

Adds a new light weight polyline to the current drawing.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax
public EntityObject AddLightWeightPolyline(
	List<LwPolylineVertex> Vertexes,
	bool Closed = true,
	double Width = 0,
	short ACIColor = 256,
	string LayerName = "",
	string LineTypeName = ""
)

Parameters

Vertexes
Type: System.Collections.GenericListLwPolylineVertex
An list of vertexes
Closed (Optional)
Type: SystemBoolean
True for closed light weight polyline (Default value = true).
Width (Optional)
Type: SystemDouble
The width of light weight polyline 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 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 Light Weight Polyline.
Remarks
The entity is added to the active layout.
Examples
Adds a new square to a drawing.
[C#]

List<LwPolylineVertex> lwpolyvertexes = new List<LwPolylineVertex>();
lwpolyvertexes.Add(new LwPolylineVertex(0,0));
lwpolyvertexes.Add(new LwPolylineVertex(0,10));
lwpolyvertexes.Add(new LwPolylineVertex(10,10));
lwpolyvertexes.Add(new LwPolylineVertex(10,0));

dxfReaderNETControl1.AddLightWeightPolyline(lwpolyvertexes,true);
See Also