LinkedSelectionRule#
- class ansys.acp.core.LinkedSelectionRule(selection_rule, *, operation_type='intersect', template_rule=False, parameter_1=0.0, parameter_2=0.0)#
Defines selection rules linked to a Boolean Selection Rule or Modeling Ply.
- 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.
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.
Methods
Create a new unstored LinkedSelectionRule with the same properties.
Attributes
Operation to combine the selection rule with other selection rules.
First template parameter of the selection rule.
Second template parameter of the selection rule.
Link to an existing selection rule.
Whether the selection rule is a template rule.