ModelingGroup
Last update: 16.07.2026class compolyx.ModelingGroup(graph, obj, parent=None)
Class to manage modeling groups.
Access:
>>> import compolyx
>>> db = compolyx.DB()
>>> model = db.models['class40.1']
>>> mpg = model.modeling_groups['PlyGroup.1']
Creation:
>>> import compolyx
>>> db = compolyx.DB()
>>> model = db.models['class40.1']
>>> mpg_1 = model.create_modeling_group('PlyGroup.1')
Attributes
| Name | Description |
|---|---|
ModelingGroup.active |
Active status of the object. |
ModelingGroup.enabled |
Indicates whether the object is enabled. |
ModelingGroup.id |
ID of the object. |
ModelingGroup.is_dict_item |
Indicates whether the object is an item in a dictionary. |
ModelingGroup.is_list_item |
Indicates whether the object is an item of a list. |
ModelingGroup.link_path |
Root path of the current node in the tree for links to this object. |
ModelingGroup.name |
Name of the object. |
ModelingGroup.parent |
Parent object in the tree. |
ModelingGroup.plies |
Modeling plies of the Modeling Group. |
ModelingGroup.root_path |
Root path of the current node in the tree. |
ModelingGroup.size |
Number of entities. |
ModelingGroup.status |
Status of the object. |
ModelingGroup.status_changed |
Boolean flag which is set to true in C++ when up-to-date status of object changes. |
ModelingGroup.uid |
UID of the object. |
ModelingGroup.vertex |
Raises an error if the object has been removed from the graph. |
Methods
| Name | Description |
|---|---|
ModelingGroup.add(entity) |
Add entity to the set. |
ModelingGroup.clear() |
|
ModelingGroup.copy_butt_joint_sequence(source) |
Makes a copy of a butt-joint sequence. |
ModelingGroup.copy_interface_layer(source[, ...]) |
Copy an interface layer. |
ModelingGroup.copy_modeling_ply(source[, ...]) |
Copy a modeling ply. |
ModelingGroup.copy_sequence_entity(source[, ...]) |
|
ModelingGroup.create_butt_joint_sequence([...]) |
Creates a new butt-joint sequences and adds it to this modeling group. |
ModelingGroup.create_interface_layer([name, ...]) |
Create an interface layer. |
ModelingGroup.create_modeling_ply([name, ...]) |
Create modeling ply. |
ModelingGroup.export_ply_geometries(filename) |
Exports the surface, boundary, and/or fiber directions of modeling, production, and analysis ply to .igs or .step file. |
ModelingGroup.find_parent(type) |
Steps up the tree and returns the first parent with given type. |
ModelingGroup.get_short_description() |
|
ModelingGroup.is_imported() |
|
ModelingGroup.obj_exists() |
Checks if __obj still references the c++ object (has not been reset to None by self._delete) and exists in the graph. |
ModelingGroup.remove(entity) |
Remove entity from the set. |
ModelingGroup.reorder_plies(source, target) |
Reorder the ply group. |
ModelingGroup.serialize([butt_joints]) |
Serialize to Python string. |
ModelingGroup.serialize_name_and_id() |
Serializes the name and ID. |
ModelingGroup.split_modeling_plies_by_production_material(*) |
Split modeling plies into separate modeling plies for each production material. |
ModelingGroup.sync_plies() |
|
ModelingGroup.update() |
|
ModelingGroup.visit(visitor) |
Walk through the tree and let the visitor perform action on every descendant node. |