Skip to main content
Version: 2026R2

GeometricalSelectionRule

class compolyx.GeometricalSelectionRule(graph, obj, parent=None)

Geometrical selection rule.

Attributes

NameDescription
GeometricalSelectionRule.activeActive status of object
GeometricalSelectionRule.changedTriggers Observable to dispatch changed message
GeometricalSelectionRule.element_setsElement Sets for the Geometrical Selection Rule
GeometricalSelectionRule.enabledWhether this object is currently enabled or not
GeometricalSelectionRule.extentExtent of the rule
GeometricalSelectionRule.geometrical_rule_typeGeometrical rule type. Available options: geometry, element_sets
GeometricalSelectionRule.geometryVirtual Geometry for the Geometrical Selection Rule
GeometricalSelectionRule.idID of object
GeometricalSelectionRule.in_plane_capture_toleranceIn-plane capture tolerance
GeometricalSelectionRule.include_rule_typeInclude type
GeometricalSelectionRule.is_dict_itemSpecifies whether the object is an item of a dict
GeometricalSelectionRule.is_list_itemSpecifies whether the object is an item of a list
GeometricalSelectionRule.link_pathRoot path of the current node in the tree for links to this object
GeometricalSelectionRule.nameName of object
GeometricalSelectionRule.neg_capture_toleranceCapture tolerance in the negative direction of the CAD surface
GeometricalSelectionRule.parentParent object in tree
GeometricalSelectionRule.pos_capture_toleranceCapture tolerance in the positive direction of the CAD surface
GeometricalSelectionRule.projection_normalProjection direction used to map curves onto the shell mesh
GeometricalSelectionRule.relative_rule_typeRelative type
GeometricalSelectionRule.root_pathRoot path of the current node in the tree
GeometricalSelectionRule.statusStatus of the object
GeometricalSelectionRule.status_changedBoolean flag which is set to true in C++ when up-to-date status of object changes
GeometricalSelectionRule.uidUID of object
GeometricalSelectionRule.use_defaultsWhether to use the offset value of the CAD Geometry or not
GeometricalSelectionRule.use_projection_normalWhether to use a projection normal for outlines or not
GeometricalSelectionRule.vertexThrows an error if the object has been removed from the graph

Methods

NameDescription
GeometricalSelectionRule.add_element_set(...)Add element set to GeometricalSelection rule
GeometricalSelectionRule.clear_element_sets()Clear element sets of oriented selection set
GeometricalSelectionRule.find_parent(type)Function steps up the tree and returns the first parent with given type
GeometricalSelectionRule.get_short_description()
GeometricalSelectionRule.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
GeometricalSelectionRule.serialize()Serialize to Python string
GeometricalSelectionRule.serialize_name_and_id()Helper function to serialize name and ID
GeometricalSelectionRule.serialize_rule_types()
GeometricalSelectionRule.update()
GeometricalSelectionRule.visit(visitor)Walk through the tree and let the visitor perform action on every descendant node