class compolyx.SnapToGeometry(obj, parent)
SnapToGeometry guide classAttributes
| Name | Description |
|---|---|
SnapToGeometry.active | Snap-To Geometry active |
SnapToGeometry.cad_geometry | Associated Geometry |
SnapToGeometry.elements | List of affected shell elements |
SnapToGeometry.enabled | Whether this object is currently enabled or not |
SnapToGeometry.id | ID of object |
SnapToGeometry.is_dict_item | Specifies whether the object is an item of a dict |
SnapToGeometry.is_list_item | Specifies whether the object is an item of a list |
SnapToGeometry.link_path | Root path of the current node in the tree for links to this object |
SnapToGeometry.name | Name of object |
SnapToGeometry.orientation | Orientation |
SnapToGeometry.oriented_selection_set | |
SnapToGeometry.parent | Parent object in tree |
SnapToGeometry.root_path | Root path of the current node in the tree |
SnapToGeometry.status | Status of the object |
SnapToGeometry.status_changed | Boolean flag which is set to true in C++ when up-to-date status of object changes |
SnapToGeometry.uid | UID of object |
SnapToGeometry.vertex | This will throw an error if the object has been removed from the graph |
Methods
| Name | Description |
|---|---|
SnapToGeometry.find_parent(type) | Function steps up the tree and returns the first parent with given type |
SnapToGeometry.from_obj(obj, org_obj) | |
SnapToGeometry.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 |
SnapToGeometry.serialize() | |
SnapToGeometry.serialize_name_and_id() | Helper function to serialize name and ID |
SnapToGeometry.update() | |
SnapToGeometry.visit(visitor) | Walk through the tree and let the visitor perform action on every descendant node |