Removes an existing layer from the document. The layer to be removed cannot be the current layer. Unlike the PurgeLayer method, the layer must be empty, or contain no objects, before it can be removed. Any layers that are children of the specified layer will also be removed if they are also empty.
Rhino.DeleteLayer (strLayer)
strLayer |
Required. String. The name or identifier of an empty layer. |
Boolean |
True or false indicating success or failure. |
Null |
On error. |
Dim strLayer
strLayer = Rhino.GetString("Layer to remove")
If Not IsNull(strLayer) Then
Rhino.DeleteLayer(strLayer)
End If