RhinoCommon API
InstanceDefinitionTableDelete Method (Int32, Boolean, Boolean) |
Deletes the instance definition.
Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll)

public bool Delete( int idefIndex, bool deleteReferences, bool quiet )
Public Function Delete ( idefIndex As Integer, deleteReferences As Boolean, quiet As Boolean ) As Boolean
Parameters
- idefIndex
- Type: SystemInt32
zero based index of instance definition to delete. This must be in the range 0 <= idefIndex < InstanceDefinitionTable.Count. - deleteReferences
- Type: SystemBoolean
true to delete all references to this definition. false to delete definition only if there are no references. - quiet
- Type: SystemBoolean
If true, no warning message box appears if an instance definition cannot be deleted because it is the current layer or it contains active geometry.
Return Value
Type: Booleantrue if successful. false if the instance definition has active references and bDeleteReferences is false.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14