Obsolete. Superseded by IDrawingDoc::CreateLayer2.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function CreateLayer( _
ByVal Layername As System.String, _
ByVal LayerDesc As System.String, _
ByVal LayerColor As System.Integer, _
ByVal LayerStyle As System.Integer, _
ByVal LayerWidth As System.Integer, _
ByVal BOn As System.Boolean _
) As System.Boolean |
Visual Basic (Usage) | |
---|
Dim instance As IDrawingDoc
Dim Layername As System.String
Dim LayerDesc As System.String
Dim LayerColor As System.Integer
Dim LayerStyle As System.Integer
Dim LayerWidth As System.Integer
Dim BOn As System.Boolean
Dim value As System.Boolean
value = instance.CreateLayer(Layername, LayerDesc, LayerColor, LayerStyle, LayerWidth, BOn) |
Parameters
- Layername
Layer name (see Remarks)
- LayerDesc
Description for the new layer
- LayerColor
COLORREF value specifying the color of items in this layer
- LayerStyle
Line style as defined in swLineStyles_e
- LayerWidth
Line width as defined in swLineWeights_e
- BOn
- True makes this layer visible, false makes it invisible
Return Value
True if the layer was created successfully, false if not
Remarks
See Also
Availability
SOLIDWORKS 99, datecode 1999207