Provides access to instance (block) definitions in the 3dm file.
Properties
Methods
Adds an instance definition to the instance definition table.
public int Add()
name,
The definition name.
description,
The definition description.
basePoint,
A base point.
geometry,
An element.
attributes
An attribute.
Returns: >=0 index of instance definition in the instance definition table. -1 on failure.
Adds an instance definition to the instance definition table.
public int Add()
name,
The definition name.
description,
The definition description.
basePoint,
A base point.
geometry,
An array, a list or any enumerable set of geometry.
attributes
An array, a list or any enumerable set of attributes.
Returns: >=0 index of instance definition in the instance definition table. -1 on failure.
Adds an instance definition to the instance definition table.
public int Add()
name,
The definition name.
description,
The definition description.
basePoint,
A base point.
geometry
An array, a list or any enumerable set of geometry.
Returns: >=0 index of instance definition in the instance definition table. -1 on failure.
Adds an instance definition to the instance definition table.
public int Add()
name,
The definition name.
description,
The definition description.
url,
A URL or hyperlink.
urlTag,
A description of the URL or hyperlink.
basePoint,
A base point.
geometry,
An array, a list or any enumerable set of geometry.
attributes
An array, a list or any enumerable set of attributes.
Returns: >=0 index of instance definition in the instance definition table. -1 on failure.
Add
Adds an item.
public virtual void Add()
T
item
The item to add.
Adds a linked instance definition to the instance definition table.
Clear
Marks all items as deleted.
public void Clear()
Returns: True on success.
Overrides: CommonComponentTable<T>.Delete
Delete
Flags a component as deleted.
Returns: True on success.
Returns: A string containing the dump.
FindId
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.
Returns: Reference to the rhino object with the objectId or null if no such object could be found.
Implements: FindId
Finds an InstanceDefinitionGeometry given its name.
Returns: An InstanceDefinitionGeometry, or null on error.
Finds a InstanceDefinitionGeometry given its name hash.
Returns: An InstanceDefinitionGeometry, or null on error.
GetEnumerator
Returns the enumerator that yields all items.