class compolyx.CADSolid(graph, obj, parent=None)
Represents a CADSolid.Attributes
| Name | Description |
|---|---|
CADSolid.active | Active status of the object. |
CADSolid.enabled | Indicates whether the object is enabled. |
CADSolid.id | ID of the object. |
CADSolid.is_dict_item | Indicates whether the object is an item in a dictionary. |
CADSolid.is_free | Boolean that indicates whether the shape is free.. |
CADSolid.is_list_item | Indicates 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 the object. |
CADSolid.parent | Parent object in the tree. |
CADSolid.path | Returns the topology path of the CAD component. |
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 the object. |
CADSolid.vertex | Raises 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 (has not been reset to None by self._delete) and exists in the graph. |
CADSolid.serialize_name_and_id() | Serializes the name and ID. |
CADSolid.update() | Update the CAD component. |
CADSolid.visit(visitor) | Walk through the tree and let the visitor perform action on every descendant node. |