Click or drag to resize

DXFReaderNETControlAddLayer Method

Adds a new layer to the drawing.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax
public Layer AddLayer(
	string LayerName,
	short AciColor = 7
)

Parameters

LayerName
Type: SystemString
The name of the new layer
AciColor (Optional)
Type: SystemInt16
A number for 1 to 256 corresponding to the AutoCAD Color Index (Default value = 7).

Return Value

Type: Layer
The new added Layer.
Remarks
If layer already exists error 301 is raised.
See Also