Skip to main content
Version: 2026R2

CADShell

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

ComPoLyX Class to represent CADShell.

Attributes

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

Methods

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