class compolyx.SolidElementSet(graph, obj=None, parent=None)
Solid element set class. Element Set of a solid model.Attributes
| Name | Description |
|---|---|
SolidElementSet.active | Active status of object |
SolidElementSet.element_labels | List of solid elements which are linked to this element set |
SolidElementSet.enabled | Whether this object is currently enabled or not |
SolidElementSet.id | ID of object |
SolidElementSet.is_dict_item | Specifies whether the object is an item of a dict |
SolidElementSet.is_list_item | Specifies whether the object is an item of a list |
SolidElementSet.link_path | Root path of the current node in the tree for links to this object |
SolidElementSet.locked | Returns true if the object is locked (not editable, nor deletable) |
SolidElementSet.name | Name of object |
SolidElementSet.parent | Parent object in tree |
SolidElementSet.root_path | Root path of the current node in the tree |
SolidElementSet.size | Number of entities |
SolidElementSet.status | Status of the object |
SolidElementSet.status_changed | Boolean flag which is set to true in C++ when up-to-date status of object changes |
SolidElementSet.uid | UID of object |
SolidElementSet.vertex | This will throw an error if the object has been removed from the graph |
Methods
| Name | Description |
|---|---|
SolidElementSet.find_parent(type) | Function steps up the tree and returns the first parent with given type |
SolidElementSet.get_short_description() | |
SolidElementSet.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 |
SolidElementSet.serialize() | Serialize to Python string |
SolidElementSet.serialize_name_and_id() | Helper function to serialize name and ID |
SolidElementSet.update() | |
SolidElementSet.visit(visitor) | Walk through the tree and let the visitor perform action on every descendant node |