Feature Example
To suppress a feature based on an input value:
Create a form
with a checkbox called Chamfer
that requires the feature when checked.
Open the
Rules tab.
For Action,
select Edit Feature Rules and
click Next.
Double-click the feature
in the
rules list.
Select Chamfer
from the Inputs tab.
Click Next.
The formula shown in the rules list:
Chamfer
The feature is unsuppressed when the checkbox
is checked (returns True to the rule) and suppressed when cleared (returns
False to the rule)
To suppress a pattern feature when the number of holes
is 0 or 1:
Create a form
with an input field for HoleQuantity.
Open the
Rules tab.
For Action,
select Edit Feature Rules and
click Next.
Double-click the feature
in the
rules list.
Select If
from the Logic tab and construct the expression to suppress or unsuppress
the feature based on the value of HoleQuantity:
In the If
field, select HoleQuantity from
the Inputs tab.
In the Then
field, enter the action, in quotes, to perform on the feature when this
condition is True.
In the Otherwise
field, type the action, in quotes, to perform on the feature when this
condition is False.
Click Next.
The formula shown in the rules list:
IF ( HoleQuantity <=
1 , "Suppress" , "Unsuppress"
)