Skip to main content
Version: 2026R2

SnapToGeometry

class compolyx.SnapToGeometry(obj, parent)

SnapToGeometry guide class

Attributes

NameDescription
SnapToGeometry.activeSnap-To Geometry active
SnapToGeometry.cad_geometryAssociated Geometry
SnapToGeometry.elementsList of affected shell elements
SnapToGeometry.enabledWhether this object is currently enabled or not
SnapToGeometry.idID of object
SnapToGeometry.is_dict_itemSpecifies whether the object is an item of a dict
SnapToGeometry.is_list_itemSpecifies whether the object is an item of a list
SnapToGeometry.link_pathRoot path of the current node in the tree for links to this object
SnapToGeometry.nameName of object
SnapToGeometry.orientationOrientation
SnapToGeometry.oriented_selection_set
SnapToGeometry.parentParent object in tree
SnapToGeometry.root_pathRoot path of the current node in the tree
SnapToGeometry.statusStatus of the object
SnapToGeometry.status_changedBoolean flag which is set to true in C++ when up-to-date status of object changes
SnapToGeometry.uidUID of object
SnapToGeometry.vertexThis will throw an error if the object has been removed from the graph

Methods

NameDescription
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