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