create_geometrical_selection_rule#
- Model.create_geometrical_selection_rule(*, name='GeometricalSelectionrule', geometrical_rule_type='geometry', geometry=None, element_sets=(), include_rule=True, use_default_tolerances=True, in_plane_capture_tolerance=0.0, negative_capture_tolerance=0.0, positive_capture_tolerance=0.0)#
Instantiate a Geometrical Selection Rule.
- Parameters:
name (str) – Name of the Geometrical Selection Rule.
geometrical_rule_type (GeometricalRuleType) – Rule type. Can be either
GeometricalRuleType.GEOMETRY
orGeometricalRuleType.ELEMENT_SETS
.geometry (VirtualGeometry | None) – Virtual geometry to use for the rule.
element_sets (Iterable[ElementSet]) – Element sets to use for the rule.
include_rule (bool) – Include or exclude area in rule. Setting this to
False
inverts the selection.use_default_tolerances (bool) – Whether to use default tolerances.
in_plane_capture_tolerance (float) – In-plane capture tolerance around the outline.
negative_capture_tolerance (float) – Capture tolerance along the surface or projection normal.
positive_capture_tolerance (float) – Capture tolerance along the opposite surface or projection normal.
- Return type:
Added in ACP server version 24.2.
Examples using Model.create_geometrical_selection_rule#
Advanced selection rules example