File3dmLayerTableAddLayer Method |
Easy way to add a layer to the model
Namespace:
Rhino.FileIO
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 7.6
Syntaxpublic int AddLayer(
string name,
Color color
)
Public Function AddLayer (
name As String,
color As Color
) As Integer
Parameters
- name
- Type: SystemString
new layer name - color
- Type: System.DrawingColor
new layer color
Return Value
Type:
Int32
If layer_name is valid, the layer's index (>=0) is returned. Otherwise,
RhinoMath.UnsetIntIndex is returned.
See Also