Skip to main content
Version: 2026R2

CADFace

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

ComPoLyX Class to represent CADFace.

Attributes

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

Methods

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