Creates a layer for this document.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function CreateLayer2( _
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, _
ByVal BPrint 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 BPrint As System.Boolean
Dim value As System.Boolean
value = instance.CreateLayer2(Layername, LayerDesc, LayerColor, LayerStyle, LayerWidth, BOn, BPrint) |
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
- BPrint
- True to print this layer when printing the document, false to not
Return Value
True if the layer was created successfully, false if not
Example
Remarks
See Also
Availability
SOLIDWORKS 2015 FCS, Revision Number 23.0