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_1
andparameter_2
attributes, not from the linked selection rule.parameter_1 (float) – First parameter value of the selection rule. Only applies if
template_rule
isTrue
.parameter_2 (float) – Second parameter value of the selection rule. Only applies if
template_rule
isTrue
.
The
parameter_1
andparameter_2
attributes determine the values of the following parameters, depending on the type of selection rule:Rule Type
parameter_1
parameter_2
lower_limit
upper_limit
radius
-
radius
-
outer_radius
inner_radius
in_plane_capture_tolerance
-
-
-
-
-
Note that
CutOffSelectionRule
andBooleanSelectionRule
objects 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.