Skip to main content
Version: 2026R1

CADSolid

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

ComPoLyX Class to represent CADSolid.

Attributes

NameDescription
CADSolid.activeActive status of object
CADSolid.enabledWhether this object is currently enabled or not
CADSolid.idID of object
CADSolid.is_dict_itemSpecifies whether the object is an item of a dict
CADSolid.is_freeBoolean whether the shape is free or not
CADSolid.is_list_itemSpecifies whether the object is an item of a list
CADSolid.link_pathRoot path of the current node in the tree for links to this object
CADSolid.lockedLocked status of the CAD Component
CADSolid.map_indexMap index of the shape
CADSolid.nameName of object
CADSolid.parentParent object in tree
CADSolid.pathReturns topology path of the CADComponent
CADSolid.root_pathRoot path of the current node in the tree
CADSolid.statusStatus of the object
CADSolid.status_changedBoolean flag which is set to true in C++ when up-to-date status of object changes
CADSolid.sub_shapesSub faces of the CAD Solid
CADSolid.uidUID of object
CADSolid.vertexThis will throw an error if the object has been removed from the graph

Methods

NameDescription
CADSolid.find_parent(type)Steps up the tree and returns the first parent with given type
CADSolid.get_short_description()
CADSolid.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
CADSolid.serialize_name_and_id()Helper function to serialize name and ID
CADSolid.update()Update the CadComponent
CADSolid.visit(visitor)Walk through the tree and let the visitor perform an action on every descendant node