add_selection_rule#
- ModelingPly.add_selection_rule(selection_rule, *, operation_type='intersect', template_rule=False, parameter_1=0.0, parameter_2=0.0)#
Add a LinkedSelectionRule to the ModelingPly.
- Parameters:
selection_rule (BooleanSelectionRule | CutOffSelectionRule | CylindricalSelectionRule | GeometricalSelectionRule | ParallelSelectionRule | SphericalSelectionRule | TubeSelectionRule | VariableOffsetSelectionRule) – Link to an existing selection rule.
operation_type (BooleanOperationType) – Determines how the selection rule is combined with other selection rules.
template_rule (bool) – If
True, the selection rule is a template rule. This means the parameter values are taken from theparameter_1andparameter_2attributes, not from the linked selection rule.parameter_1 (float) – First parameter value of the selection rule. Only applies if
template_ruleisTrue.parameter_2 (float) – Second parameter value of the selection rule. Only applies if
template_ruleisTrue.
- Return type:
The
parameter_1andparameter_2attributes determine the values of the following parameters, depending on the type of selection rule:Rule Type
parameter_1parameter_2lower_limitupper_limitradius-
radius-
outer_radiusinner_radiusin_plane_capture_tolerance-
-
-
-
-
Note that
CutOffSelectionRuleandBooleanSelectionRuleobjects cannot be linked to a Boolean Selection Rule, only to a Modeling Ply..Added in ACP server version 24.2.