Dimension Examples
To subtract a value from a form input value:
Create a form
with an input field called ShaftLength.
Open the
Rules tab.
For Action,
select Edit Dimension
Rules and click Next.
Double-click the dimension
for which
you want to build the rule.
In the rule window, select ShaftLength
from the Inputs list and enter - 285,
the value to be subtracted.
Click Next.
The formula shown in the rules list:
ShaftLength - 285
To calculate a pitch from an input value and a preferred
hole quantity.
Create a form
with an input field called InputValue.
Open the
Rules tab.
For Action,
select Edit Dimension
Rules and click Next.
Double-click the dimension
for which
you want to build the rule.
In the build window, enter an open bracket ( ( ) and select InputValue
from the Inputs list.
Subtract 300,
the total of the start (150) and
end (150) distances of the pattern
and select a closed bracket ( )
) from the Math list.
Select the divide operator (
/ ) from the Math list, enter 10
(the number of holes preferred).
Click Next.
The formula shown in the rules list:
( InputValue
- 300 ) / 10
To calculate a hole quantity for a pattern from an input
value and a preferred pitch.
Create a form
with an input field called InputValue.
Open the
Rules tab.
For Action,
select Edit Dimension
Rules and click Next.
Double-click the dimension
for which
you want to build the rule.
In the build window, enter an open bracket ( ( ) and select InputValue
from the Inputs list.
Subtract 300
(the total of the start (150) and end (150) distance of the pattern) and
select a closed bracket ( ) )
from the Math list..
Select the divide operator (
/ ) from the Math list, enter 175
(the pitch preferred).
Before the open bracket, type ROUNDDOWN
and after the entered pitch, type ,0)
to round the result down to the nearest whole number.
After the last close bracket, type +
1 to calculate the hole quantity.
Click Next.
The formula shown in the rules list:
ROUNDDOWN
(( InputValue
- 300 ) / 175 , 0 ) + 1