Creates a layer for this document.
.NET Syntax
Visual Basic (Usage) | |
---|
Dim instance As IDrawingDoc
Dim Layername As String
Dim LayerDesc As String
Dim LayerColor As Integer
Dim LayerStyle As Integer
Dim LayerWidth As Integer
Dim BOn As Boolean
Dim value As 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
Example
Remarks
See Also
Availability
SolidWorks 99, datecode 1999207