|
DXFReader Control - AddLayer Method
Kadmos DXFReader ActiveX Control

DXFReader Control
AddLayer Method
|
Description
|
Adds a new layer to the drawing.
|
|
Syntax
|
[form.]DXFReader.AddLayer (LayerName As String, [LayerColor As Integer], [LineType As String])
|
|
Remarks
|
If the layer indicated by the LayerName parameter exists the Error event is fired with ErrorCode = 301.
The following code will add to the drawing a new layer, named "RedLines" and with LayerColor = 1 (Red):
DXFReader.AddLayer "RedLines", 1
The parameters for the AddLayer method are described below:
| LayerName | The name of the new layer | | LayerColor | (Optional) An integer number for 1 to 256 corresponding to the AutoCAD Color Index. (Default value = 7) | | LineType | (Optional) The name of the line type. If omitted the CurrentLineType property setting is used |
|
Copyright © 2008/2011 Kadmos.com - All rights reserved. Privacy Policy
|