Groups Object

The Group Object lets you define or change the groups. Solids can be assigned to groups in order to facilitate changing the properties of multiple solids.

Methods

Create ( name groupname)

Creates a new group with the given name.

 

Delete ( name groupname)

Deletes a group. The solids assigned to this group will lose their assignment.

 

Rename ( name oldname, name newname )

Changes the name of an existing group.

 

AddSolid ( name solidname, name groupname)

Adds a solid to an existing group.

 

RemoveSolid( name solidname)

Removes a solid from its group.

 

Reset

Deletes all groups. The solids assigned to groups will lose their assignment.

Example

' Create a new group

Group.Create "group1"

 

' Rename an existing group

Group.Rename "group1", "MyGroup"

 

' Add a solid to a group

Group.AddSolid "component1:solid1", "MyGroup"

 

' Remove solid from groups

Group.RemoveSolid "component1:solid1"

 

' Delete group

Group.Delete "MyGroup"