CADFace
class compolyx.CADFace(graph, obj, parent=None)
ComPoLyX Class to represent CADFace.
Attributes
| Name | Description |
|---|---|
CADFace.active | Active status of object |
CADFace.enabled | Whether this object is currently enabled or not |
CADFace.id | ID of object |
CADFace.is_dict_item | Specifies whether the object is an item of a dict |
CADFace.is_free | Boolean whether the shape is free or not |
CADFace.is_list_item | Specifies whether the object is an item of a list |
CADFace.link_path | Root path of the current node in the tree for links to this object |
CADFace.locked | Locked status of the CAD component |
CADFace.map_index | Map index of the shape |
CADFace.name | Name of object |
CADFace.parent | Parent object in tree |
CADFace.path | Returns topology path of the CADComponent |
CADFace.root_path | Root path of the current node in the tree |
CADFace.status | Status of the object |
CADFace.status_changed | Boolean flag which is set to true in C++ when up-to-date status of object changes |
CADFace.uid | UID of object |
CADFace.vertex | Throws an error if the object has been removed from the graph |
Methods
| Name | Description |
|---|---|
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 |