Adds a layer to this drawing document.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddLayer( _
ByVal NameIn As System.String, _
ByVal DescIn As System.String, _
ByVal ColorIn As System.Integer, _
ByVal StyleIn As System.Integer, _
ByVal WidthIn As System.Integer _
) As System.Integer |
Visual Basic (Usage) | |
---|
Dim instance As ILayerMgr
Dim NameIn As System.String
Dim DescIn As System.String
Dim ColorIn As System.Integer
Dim StyleIn As System.Integer
Dim WidthIn As System.Integer
Dim value As System.Integer
value = instance.AddLayer(NameIn, DescIn, ColorIn, StyleIn, WidthIn) |
Parameters
- NameIn
Layer name
- DescIn
Description for the new layer
- ColorIn
COLORREF value specifying the desired color of items within this layer
- StyleIn
Line style as defined in swLineStyles_e
- WidthIn
Line width as defined in swLineWeights_e
Return Value
1 if the layer was created successfully
See Also
Availability
SOLIDWORKS 99, datecode 1999207