Your Ad Here


CAD Topsolid On Line Help Index

Entering an expression

TopSolid allows you to enter expressions instead of numerical values: i.e.: you can enter 45 * 15+10 instead of 685. The operators you can use in expressions are:

+

Addition

-

Subtraction

*

Multiplication

/

Division

^

Power

The operators are consider from the left to the right using the following priority:

  ^  >  *  >  /  >  +  >  -

However, you can use parentheses in order to calculate certain operations before others.

You can also use arithmetic functions in your expressions. The function argument have to be included between parentheses. The arithmetic functions you can use in TopSolid are the following ones:

 

Fonction

Description

PI

3.1415926535897932385

 

 

COS(x)

Cosine of an angle

SIN(x)

Sine of an angle

TAN(x)

Tangent of an angle

ACOS(x)

Arc cosine of an angle

ASIN(x)

Arc sine of an angle

ATAN(x)

Arc tangent of an angle

ATAN2(x,y)

ATAN(x/y)

 

 

EXP(x)

Exponential (e**x)

LN(x)

Neperian logarithm

LOG(x)

Decimal logarithm

SQRT(x)

Square root

 

 

ABS(x)

Absolute value

MAX(x,y)

Maximal value

MIN(x,y)

Minimal value

 

 

AND(x,y)

Returns 1 if x and y are true

OR(x,y)

Returns 1 if x and/or y is true

NOT(x)

Returns 0 if x > 0 and 1 if x = 0

WHEN(x,y,z)

Returns z if x = 0 and y if not

 

 

x==y

Returns 1 if x = y

x>=y

Returns 1 if x >(or equal) y

x>y

Returns 1 if x > y

x<=y

Returns 1 if x <(or equal) y

x<y

Returns 1 if x < y

x!=y

Returns 1 if x different from y

 

 

CEIL2(x)

Converts a floating value to an integer by the closest upper value.

ROUND2(x)

Converts a floating value to an integer by the closest value.

FLOOR2(x)

Converts a floating value to an integer by the closest lower value.

Examples:

CAD Topsolid On Line Help Index
Your Ad Here