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