ModelingGroup
class 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 object |
ModelingGroup.enabled | Whether this object is currently enabled or not |
ModelingGroup.id | ID of object |
ModelingGroup.is_dict_item | Specifies whether the object is an item of a dict |
ModelingGroup.is_list_item | Specifies 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 object |
ModelingGroup.parent | Parent object in 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 object |
ModelingGroup.vertex | This will throw 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 iterface 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) | Function 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 (i.e. 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() | Helper function to serialize name and ID |
ModelingGroup.sync_plies() | |
ModelingGroup.update() | |
ModelingGroup.visit(visitor) | Walk through the tree and let the visitor perform action on every descendant node |