Define the Formula Field

The variable is defined in the Formula field.

For example, the variable can be a letter A, character string Height, or clause of the other variables and numbers. As an example A*2+B.

This requires that the variables used in the calculation have been specified.

The acceptable characters in variable names include:

  • numbers (0-9)
  • letters (A-Z, a-z)
  • special character underscore (_).
Note:
  • A space is an unacceptable character in a variable’s name. The maximum length of a name is 16 characters.
  • A number is an acceptable character in the beginning of the name when using an expression, for example, 0.5*Length.
  • You get the numeric value of a dimension displayed by: Select User Preferences Drawings, ModelsView Show Formulas.

The following mathematical operations are available

The argument x and/or y can be real number or formula giving a numerical value.

Calculation Meaning
+ Addition
- Subtraction
* Multiplication
/ Division
abs(x) Absolute value
acos(x)  
asin(x)  
atan(x)  
cos(x)  
exp(x) Exponential function
int(x) Integer rounding
log(x) Natural logarithm
pow(x,y) x to the power of y
sin(x)  
sqrt(x) Square root
tan(x)