Removes an existing layer from the document. Unlike the DeleteLayer method, PurgeLayer will remove the layer even if contains geometry objects. The layer to be removed cannot be the current layer.
Rhino.PurgeLayer (strLayer)
strLayer |
Required. String. The name or identifier of the layer to purge. |
String |
The name of the purged layer if successful. |
Null |
If not successful, or on error. |
Dim strLayer
strLayer = Rhino.GetString("Layer to purge")
If Not IsNull(strLayer) Then
Rhino.PurgeLayer(strLayer)
End If