General Commands > About General Commands > model.group()

model.group()
Add load groups and constraint groups.
Syntax
model.group().create(<tag>,type);
model.group(<tag>).identifier(<id>);
 
model.group(<tag>).type();
model.group(<tag>).identifier();
Description
model.group().create(<tag>,type) creates a new group of the specified type, which can be either LoadGroup or ConstraintGroup.
model.group(<tag>).identifier(<id>) sets the group identifier, which is used for defining a corresponding parameter, group.<id>.
model.group(<tag>).type() returns the group type as a string.
model.group(<tag>).identifier() returns the group identifier.