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