Click or drag to resize

InstanceDefinitionTableDelete Method (Int32, Boolean, Boolean)

Deletes the instance definition.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
public bool Delete(
	int idefIndex,
	bool deleteReferences,
	bool quiet


Type: SystemInt32
zero based index of instance definition to delete. This must be in the range 0 <= idefIndex < InstanceDefinitionTable.Count.
Type: SystemBoolean
true to delete all references to this definition. false to delete definition only if there are no references.
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: Boolean
true if successful. false if the instance definition has active references and bDeleteReferences is false.
See Also