RhinoCommon API
LayerTablePurge Method (Guid, Boolean) |
Deletes a layer and all geometry objects on a layer.
Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll)
Since: 6.0
public bool Purge( Guid layerId, bool quiet )
Public Function Purge ( layerId As Guid, quiet As Boolean ) As Boolean
Parameters
- layerId
- Type: SystemGuid
Id of the layer to purge. - quiet
- Type: SystemBoolean
If true, no warning message box appears if a layer the layer cannot be deleted because it is the current layer.
Return Value
Type: Booleantrue if successful. false if layerIndex is out of range or the layer cannot be deleted because it is the current layer.