Adds a layer to this drawing document.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddLayer( _
ByVal NameIn As String, _
ByVal DescIn As String, _
ByVal ColorIn As Integer, _
ByVal StyleIn As Integer, _
ByVal WidthIn As Integer _
) As Integer |
Visual Basic (Usage) | |
---|
Dim instance As ILayerMgr
Dim NameIn As String
Dim DescIn As String
Dim ColorIn As Integer
Dim StyleIn As Integer
Dim WidthIn As Integer
Dim value As 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