The Group class contains methods and properties to add and remove entities from groups as well as to query for the existence of specific entities within a group. Note that groups must be created using the createGroup(name) method in the Analysis group. To create a group called “chips” in an analysis object named “model”, issue the command:
model.createGroup(“chips”)
Group Class Properties
Group Properties | Type | Values |
type |
String | “Geometric”, “Motion” |
entityType |
String | “Volume”, “Surface”, “Edge” |
name |
String |
Group Class Methods
Group Methods | Description | data return |
add(id) |
adds entity id to the group; id = number | no |
add(name) |
adds entity name to the group; name = string | no |
remove(id) |
removes entity id from the group; id = number | no |
contains(id) |
Boolean querey: Does group contain entity id?; id = number | yes |