    

 ## On this page

  

 

 # GeometricalSelectionRule

 Last update: 16.07.2025 

<a id="compolyx.GeometricalSelectionRule"></a>

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

Geometrical selection rule.

### Attributes

NameDescription[`GeometricalSelectionRule.active`](compolyx.GeometricalSelectionRule.active.md#compolyx.GeometricalSelectionRule.active)Active status of object[`GeometricalSelectionRule.changed`](compolyx.GeometricalSelectionRule.changed.md#compolyx.GeometricalSelectionRule.changed)Triggers Observable to dispatch changed message[`GeometricalSelectionRule.element_sets`](compolyx.GeometricalSelectionRule.element_sets.md#compolyx.GeometricalSelectionRule.element_sets)Element Sets for the Geometrical Selection Rule[`GeometricalSelectionRule.enabled`](compolyx.GeometricalSelectionRule.enabled.md#compolyx.GeometricalSelectionRule.enabled)Whether this object is currently enabled or not[`GeometricalSelectionRule.extent`](compolyx.GeometricalSelectionRule.extent.md#compolyx.GeometricalSelectionRule.extent)Extent of the rule[`GeometricalSelectionRule.geometrical_rule_type`](compolyx.GeometricalSelectionRule.geometrical_rule_type.md#compolyx.GeometricalSelectionRule.geometrical_rule_type)Geometrical rule type. Available options: geometry, element\_sets[`GeometricalSelectionRule.geometry`](compolyx.GeometricalSelectionRule.geometry.md#compolyx.GeometricalSelectionRule.geometry)Virtual Geometry for the Geometrical Selection Rule[`GeometricalSelectionRule.id`](compolyx.GeometricalSelectionRule.id.md#compolyx.GeometricalSelectionRule.id)ID of object[`GeometricalSelectionRule.in_plane_capture_tolerance`](compolyx.GeometricalSelectionRule.in_plane_capture_tolerance.md#compolyx.GeometricalSelectionRule.in_plane_capture_tolerance)In-plane capture tolerance[`GeometricalSelectionRule.include_rule_type`](compolyx.GeometricalSelectionRule.include_rule_type.md#compolyx.GeometricalSelectionRule.include_rule_type)Include type[`GeometricalSelectionRule.is_dict_item`](compolyx.GeometricalSelectionRule.is_dict_item.md#compolyx.GeometricalSelectionRule.is_dict_item)Specifies whether the object is an item of a dict[`GeometricalSelectionRule.is_list_item`](compolyx.GeometricalSelectionRule.is_list_item.md#compolyx.GeometricalSelectionRule.is_list_item)Specifies whether the object is an item of a list[`GeometricalSelectionRule.link_path`](compolyx.GeometricalSelectionRule.link_path.md#compolyx.GeometricalSelectionRule.link_path)Root path of the current node in the tree for links to this object[`GeometricalSelectionRule.name`](compolyx.GeometricalSelectionRule.name.md#compolyx.GeometricalSelectionRule.name)Name of object[`GeometricalSelectionRule.neg_capture_tolerance`](compolyx.GeometricalSelectionRule.neg_capture_tolerance.md#compolyx.GeometricalSelectionRule.neg_capture_tolerance)Capture tolerance in the negative direction of the CAD surface[`GeometricalSelectionRule.parent`](compolyx.GeometricalSelectionRule.parent.md#compolyx.GeometricalSelectionRule.parent)Parent object in tree[`GeometricalSelectionRule.pos_capture_tolerance`](compolyx.GeometricalSelectionRule.pos_capture_tolerance.md#compolyx.GeometricalSelectionRule.pos_capture_tolerance)Capture tolerance in the positive direction of the CAD surface[`GeometricalSelectionRule.projection_normal`](compolyx.GeometricalSelectionRule.projection_normal.md#compolyx.GeometricalSelectionRule.projection_normal)Projection direction used to map curves onto the shell mesh[`GeometricalSelectionRule.relative_rule_type`](compolyx.GeometricalSelectionRule.relative_rule_type.md#compolyx.GeometricalSelectionRule.relative_rule_type)Relative type[`GeometricalSelectionRule.root_path`](compolyx.GeometricalSelectionRule.root_path.md#compolyx.GeometricalSelectionRule.root_path)Root path of the current node in the tree[`GeometricalSelectionRule.status`](compolyx.GeometricalSelectionRule.status.md#compolyx.GeometricalSelectionRule.status)Status of the object[`GeometricalSelectionRule.status_changed`](compolyx.GeometricalSelectionRule.status_changed.md#compolyx.GeometricalSelectionRule.status_changed)Boolean flag which is set to true in C++ when up-to-date status of object changes[`GeometricalSelectionRule.uid`](compolyx.GeometricalSelectionRule.uid.md#compolyx.GeometricalSelectionRule.uid)UID of object[`GeometricalSelectionRule.use_defaults`](compolyx.GeometricalSelectionRule.use_defaults.md#compolyx.GeometricalSelectionRule.use_defaults)Whether to use the offset value of the CAD Geometry or not[`GeometricalSelectionRule.use_projection_normal`](compolyx.GeometricalSelectionRule.use_projection_normal.md#compolyx.GeometricalSelectionRule.use_projection_normal)Whether to use a projection normal for outlines or not[`GeometricalSelectionRule.vertex`](compolyx.GeometricalSelectionRule.vertex.md#compolyx.GeometricalSelectionRule.vertex)Throws an error if the object has been removed from the graph### Methods

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