SnapToGeometry
Last update: 16.07.2026class compolyx.SnapToGeometry(obj, parent)
SnapToGeometry guide class
Attributes
| Name | Description |
|---|---|
SnapToGeometry.active |
Snap-To Geometry active. |
SnapToGeometry.cad_geometry |
Associated Geometry. |
SnapToGeometry.elements |
List of affected shell elements. |
SnapToGeometry.enabled |
Indicates whether the object is enabled. |
SnapToGeometry.id |
ID of the object. |
SnapToGeometry.is_dict_item |
Indicates whether the object is an item in a dictionary. |
SnapToGeometry.is_list_item |
Indicates 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 the object. |
SnapToGeometry.orientation |
Orientation. |
SnapToGeometry.oriented_selection_set |
|
SnapToGeometry.parent |
Parent object in the 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 the object. |
SnapToGeometry.vertex |
Raises an error if the object has been removed from the graph. |
Methods
| Name | Description |
|---|---|
SnapToGeometry.find_parent(type) |
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 (has not been reset to None by self._delete) and exists in the graph. |
SnapToGeometry.serialize() |
|
SnapToGeometry.serialize_name_and_id() |
Serializes the name and ID. |
SnapToGeometry.update() |
|
SnapToGeometry.visit(visitor) |
Walk through the tree and let the visitor perform action on every descendant node. |