create_group#
- Modeler2D.create_group(objects: list | None = None, components: list | None = None, groups: list | None = None, group_name: str | None = None)#
Group objects or groups into one group.
At least one between
objects,components,groupshas to be defined.- Parameters:
- objects
list,optional List of objects. The default is
None, in which case a group with all objects is created.- components
list,optional List of 3d components to group. The default is
None.- groups
list,optional List of groups. The default is
None.- group_name
str,optional Name of the new group. The default is
None. It is not possible to choose the name but a name is assigned automatically.
- objects
- Returns:
strName assigned to the new group.
References
>>> oEditor.CreateGroup