Group Class

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 PropertiesTypeValues

type

String“Geometric”, “Motion”

entityType

String“Volume”, “Surface”, “Edge”

name

String 

Group Class Methods

Group MethodsDescriptiondata return

add(id)

adds entity id to the group; id = numberno

add(name)

adds entity name to the group; name = stringno

remove(id)

removes entity id from the group; id = numberno

contains(id)

Boolean querey: Does group contain entity id?; id = numberyes