Skip to content

InstanceDefinitionTable

Public Class

Inheritance Hierarchy

System.Object
Rhino.FileIO.CommonComponentTable. InstanceDefinition.
Rhino.DocObjects.Tables.RhinoDocCommonTable. InstanceDefinition.
Rhino.DocObjects.Tables.InstanceDefinitionTable

Namespace: Rhino.DocObjects.Tables

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

public sealed class InstanceDefinitionTable : RhinoDocCommonTable<InstanceDefinition>

The InstanceDefinitionTable type exposes the following members.

Properties

Name

Description


Public Property

Number of items in the instance definitions table, excluding deleted definitions.


Public Property

(Overrides

.)


Public Property

Number of items in the instance definitions table.

(Overrides

.)


Public Property

Document that owns this table.


Public Property

Conceptually, the InstanceDefinition table is an array of Instance definitions. The operator[] can be used to get individual instance definition. An instance definition is either active or deleted and this state is reported by IsDeleted or will be null if it has been purged from the document.


Methods

Name

Description


Public Method
Code Example

Adds an instance definition to the instance definition table.


Public Method

Adds an instance definition to the instance definition table.


Public Method
Code Example

Adds an instance definition to the instance definition table.


Public Method

Adds an instance definition to the instance definition table.


Public Method

Marks all items as deleted.

(Inherited from CommonComponentTable.T..)


Public Method

Purge deleted instance definition information that is not in use. This function is time consuming and should be used in a thoughtful manner.


Public Method

Deletes the instance definition. This deletes all references too.

(Overrides

.)


Public Method

Deletes the instance definition.


Public Method

Destroys all source archive information. Specifically: *

is set to the empty string. * SourceRelativePath is set to false * The alternative source archive path is set to the empty string. * Checksum.Zero() is used to private destroy all checksum information. * is set to Static.


Public Method

Equals

Determines whether the specified object is equal to the current object.

(Inherited from Object.)


Public Method
Code Example

Finds the instance definition with a given name.


Public Method

Finds the instance definition with a given id.


Public Method
Code Example

Obsolete.

Finds the instance definition with a given name.


Public Method

Uses the guid to find a model component. Deleted objects cannot be found by id. The guid is the value that is stored in the .Id property. In a single document, no two active objects have the same guid. If an object is replaced with a new object, then the guid persists. For example, if the _Move command moves an object, then the moved object inherits its guid from the starting object. If the Copy command copies an object, then the copy gets a new guid. This guid persists through file saving/opening operations. This function will not find grip objects.

(Inherited from CommonComponentTable.T..)


Public Method

(Overrides

.)


Public Method

GetHashCode

Serves as the default hash function.

(Inherited from Object.)


Public Method

Gets an array of instance definitions.


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Public Method

Gets unused instance definition name used as default when creating new instance definitions.


Public Method

Gets unused instance definition name used as default when creating new instance definitions.


Public Method

Obsolete.

Gets unused instance definition name used as default when creating new instance definitions.


Public Method

Get the index of the instance definition with a given id.


Public Method

Obsolete.

Obsolete method that always returns false. Marks the source path for a linked instance definition as relative or absolute.


Public Method

Modifies the instance definition user data. Does not change instance definition ID or geometry.


Public Method

Modifies the instance definition name and description. Does not change instance definition ID or geometry.


Public Method
Code Example

Modifies the instance definition name and description. Does not change instance definition ID or geometry.


Public Method

Modifies the instance definition name, description, and url. Does not change instance definition ID or geometry.


Public Method

Modifies the instance definition name, description, and url. Does not change instance definition ID or geometry.


Public Method

Public Method

Public Method

Modifies the instance definition geometry and replaces all references to the current definition with references to the new definition.


Public Method

If the instance definition is linked or embedded, use SetSource to specify the source archive.


Public Method

Purges an instance definition and its definition geometry.


Public Method

Reload linked block definitions and update the Rhino display.


Public Method

ToString

Returns a string that represents the current object.

(Inherited from Object.)


Public Method

Undeletes an instance definition that has been deleted by Delete()


Public Method

Restores the instance definition to its previous state, if the instance definition has been modified and the modification can be undone.


Public Method

Read the objects from a file and use them as the instance’s definition geometry.