You can use mathematical tools to enter information into numeric fields.
You can use equations in numeric fields in dialogs. In parametric mode, the equation is always displayed. With parametric modeling off, the result of the equation is displayed.
Equations are input similar to the DOS command line format. The operators are listed in the Operators table below. In a complex equation, multiplication and division operations are performed first, then addition and subtraction. Parentheses are also supported and can change the order of operation.
You can specify real numbers in several ways, for example:
1.
.1
1.234
1.e2
.1e3
.1e-4
1.2e+6
Numeric arguments can be constants. The results of operators can be assigned to variables just like any other function:
x = 1
y = 2 * (x + 2)
z = y * 47.5
You can then use the variable in other numeric fields alone, or with other operations.
You can input polar coordinates in any field that accepts point locations.
The coordinate input takes the form:
polarXd(r,,Xc) which is calculated as r(cos ) + Xc.
polarYd(r,,Yc) which is calculated as r(sin ) + Yc.
Where:
polar specifies polar coordinates.
polarx, is an X coordinate.
polary is a Y coordinate.
d specifies the angle in degrees.
polarxd is a polar coordinate for X with the angle of rotation specified in degrees.
polarx is a polar coordinate for X with the angle of rotation specified in radians.
For example, polarXd(1,45,2.5) polarYd(1,45,3.0) and polarX(1,/4,2.5) polarY(1,/4,3.0) describe the same point. the first in degrees, the second in radians.
r is the length of the offset.
is the rotation angle, which can be negative.
Xc, Yc an optional center point.
You can use these operators:
Operator |
Description |
Operator |
Description |
|
+ |
addition, adds two numbers |
acosd (num) |
Computes the arccosine (in degrees) of a number. |
|
- |
subtraction, subtracts two numbers |
atand (num) |
Computes the arctangent (in degrees) of a number. Result range is -90 to 90. |
|
* |
multiplication, multiplies two numbers |
atan2d (y,x) |
Computes the arctangent (in degrees) of y/x. Result range is -180 to 180. |
|
/ |
division, divides two numbers |
ceil(num) |
Returns the nearest integer greater than or equal to a number. |
|
sin(num) |
Computes the sine of an angle (given in radians). |
floor(num) |
Returns the nearest integer less than or equal to a number. |
|
cos(num) |
Computes the cosine of an angle (given in radians). |
|
fabs(num) |
Returns the absolute value of a number. |
tan(num) |
Computes the tangent of an angle (given in radians). |
|
sqrt(num) |
Returns the square root of a number. |
sind(num) |
Computes the sine of an angle (given in degrees). |
mm2in(millimeters) |
Converts from millimeters to inches. |
|
cosd(num) |
Computes the cosine of an angle (given in degrees). |
exp(num) |
Returns e^x where e = 2.71828. |
|
tand(num) |
Computes the tangent of an angle (given in degrees). |
|
log(num) |
Returns ln(x) where ln is the natural logarithm. |
asin(num) |
Computes the arcsine (in radians) of a number. |
|
log10(num) |
Returns the base-10 logarithm of a number. |
acos(num) |
Computes the arccosine (in radians) of a number. |
|
pow(base, power) |
Returns a base number raised to a power. |
atan(num) |
Computes the arctangent (in radians) of a number. Result range is -pi/2 to pi/2. |
degtorad(num) |
Returns an angle in radians as converted from degrees. |
|
atan2(y,x) |
Computes the arctangent (in radians) of y/x. Result range is -pi to pi. |
radtodeg(num) |
Returns an angle in degrees as converted from radians. |
|
asind(num) |
Computes the arcsine (in degrees) of a number. |
|
pi |
The mathematical value of pi to ten decimal places. |