class compolyx.CADCompound(graph, obj, parent=None)
Represents a CADCompound.Attributes
| Name | Description |
|---|---|
CADCompound.active | Active status of the object. |
CADCompound.enabled | Indicates whether the object is enabled. |
CADCompound.id | ID of the object. |
CADCompound.is_dict_item | Indicates whether the object is an item in a dictionary. |
CADCompound.is_free | Boolean that indicates whether the shape is free.. |
CADCompound.is_list_item | Indicates whether the object is an item of a list. |
CADCompound.link_path | Root path of the current node in the tree for links to this object. |
CADCompound.locked | Locked status of the CAD Component. |
CADCompound.map_index | Map index of the shape. |
CADCompound.name | Name of the object. |
CADCompound.parent | Parent object in the tree. |
CADCompound.path | Returns the topology path of the CAD component. |
CADCompound.root_path | Root path of the current node in the tree. |
CADCompound.status | Status of the object. |
CADCompound.status_changed | Boolean flag which is set to true in C++ when up-to-date status of object changes. |
CADCompound.sub_shapes | Sub faces of the CAD Compound. |
CADCompound.uid | UID of the object. |
CADCompound.vertex | Raises an error if the object has been removed from the graph. |
Methods
| Name | Description |
|---|---|
CADCompound.find_parent(type) | Steps up the tree and returns the first parent with given type. |
CADCompound.get_short_description() | |
CADCompound.obj_exists() | Checks if __obj still references the c++ object (has not been reset to None by self._delete) and exists in the graph. |
CADCompound.serialize_name_and_id() | Serializes the name and ID. |
CADCompound.update() | Update the CAD component. |
CADCompound.visit(visitor) | Walk through the tree and let the visitor perform action on every descendant node. |