Skip to main content
Version: 2026R2

SolidElementSet

class compolyx.SolidElementSet(graph, obj=None, parent=None)

Solid element set class. Element Set of a solid model.

Attributes

NameDescription
SolidElementSet.activeActive status of object
SolidElementSet.element_labelsList of solid elements which are linked to this element set
SolidElementSet.enabledWhether this object is currently enabled or not
SolidElementSet.idID of object
SolidElementSet.is_dict_itemSpecifies whether the object is an item of a dict
SolidElementSet.is_list_itemSpecifies whether the object is an item of a list
SolidElementSet.link_pathRoot path of the current node in the tree for links to this object
SolidElementSet.lockedReturns true if the object is locked (not editable, nor deletable)
SolidElementSet.nameName of object
SolidElementSet.parentParent object in tree
SolidElementSet.root_pathRoot path of the current node in the tree
SolidElementSet.sizeNumber of entities
SolidElementSet.statusStatus of the object
SolidElementSet.status_changedBoolean flag which is set to true in C++ when up-to-date status of object changes
SolidElementSet.uidUID of object
SolidElementSet.vertexThis will throw an error if the object has been removed from the graph

Methods

NameDescription
SolidElementSet.find_parent(type)Function steps up the tree and returns the first parent with given type
SolidElementSet.get_short_description()
SolidElementSet.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
SolidElementSet.serialize()Serialize to Python string
SolidElementSet.serialize_name_and_id()Helper function to serialize name and ID
SolidElementSet.update()
SolidElementSet.visit(visitor)Walk through the tree and let the visitor perform action on every descendant node