Provides access to groups in the 3dm file.
Properties
Methods
Add
public virtual void Add(T item)
Adds an item.
Parameters:
| item (T) | The item to add. |
Adds a new empty group to the group table.
Returns: >=0 index of new group or -1 on error.
Clear
public void Clear()
Marks all items as deleted.
Parameters:
| item (T) | The item to flag. |
Returns: True on success.
Overrides: CommonComponentTable<T>.Delete
Parameters:
| index (int) | The index of the item to flag. |
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.
Retrieves a Group object based on an index. This search type of search is discouraged. We are moving towards using only IDs for all tables.
Parameters:
| groupIndex (int) | The index to search for. |
Returns: A Group object, or null if none was found.
Finds a Group given its name.
Parameters:
| name (string) | The name of the Group to be searched. |
Returns: A Group, or null on error.
Finds a Group given its name hash.
Parameters:
| nameHash (NameHash) | The name hash of the Group to be searched. |
Returns: A Group, or null on error.
GetEnumerator
Returns the enumerator that yields all items.
Gets an array of all of the objects in a group.
Parameters:
| groupIndex (int) | The index of the group in this table. |
Returns: Array of objects that belong to the specified group or empty array if no objects could be found.