Skip to main content
Version: 2026R1

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​

NameDescription
ModelingGroup.activeActive status of object
ModelingGroup.enabledWhether this object is currently enabled or not
ModelingGroup.idID of object
ModelingGroup.is_dict_itemSpecifies whether the object is an item of a dict
ModelingGroup.is_list_itemSpecifies whether the object is an item of a list
ModelingGroup.link_pathRoot path of the current node in the tree for links to this object
ModelingGroup.nameName of object
ModelingGroup.parentParent object in tree
ModelingGroup.pliesModeling Plies of the Modeling Group
ModelingGroup.root_pathRoot path of the current node in the tree
ModelingGroup.sizeNumber of entities
ModelingGroup.statusStatus of the object
ModelingGroup.status_changedBoolean flag which is set to true in C++ when up-to-date status of object changes
ModelingGroup.uidUID of object
ModelingGroup.vertexThis will throw an error if the object has been removed from the graph

Methods​

NameDescription
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