Our 3D CAD supplier models have been moved to 3Dfindit.com, the new visual search engine for 3D CAD, CAE & BIM models.
You can log in there with your existing account of this site.
The content remains free of charge.
Note | |
---|---|
Some examples
about attribute algorithms can be found in the training catalog
( |
Set attribute algorithm - example
This button transfers the currently selected variable to the field.
The value for D3 if the condition is not met is located after ELSE D3 =. You include the condition with ENDIF.
If more than one condition is to be checked, you can work with ELSEIF statements.
The following conditions are possible:
(both conditions - to the right and left of .AND. - must be met) |
|
(one of the two conditions - to the right or left of .OR. - must be met) |
|
The following mathematical (textual) functions may be used:
VAR = | |
IF (....) ... |
IF () THEN VAR = ELSE VAr = ENDIF
|
ELSEIF (....) ... |
IF () THEN VAR = ELSE
|
Truncate non-integral number range AINT(3.1) = 3 AINT(3.9) = 3 AINT(-3.9) = -3
|
|
ANINT(3.1) = 3 ANINT(3.9) = 4 ANINT(-3.9) = -4
|
|
number = ATAN2 (number,number) | |
As long as the first number is bigger than the second, the calculation is: number 1 - number 2; otherwise the result is 0. DIM(8,4) = 4 DIN(4,8) = 0
|
|
number = INT (number) |
INT(4,9) = 4
|
number = NINT (number) |
NINT(4.9) = 5 NINT(4.5) = 5 NINT(4.1) = 4
|
MAX (A1, A2, A3,…)
|
|
MAX (A1, A2, A3,…)
|
|
MOD(11,4) = 3 11 - (INT(11/4)*4) = 11 - 2*4 = 3 11 / 4 == 2 Rest 3
|
|
SIGN(A,B) means that the return of the value of A is given with the prefix of B. SIGN(10,1) = 10 SIGN(10,-1) = -10 SIGN(-10,1) = 10 SIGN(-10,-1) = -10
|
|
number = ATOF ('text') |
ATOF ('3.2') -> 3.2
|
LEN('abcd') = 4 LEN(VAR) = Länge des Textes in der Variable VAR |
|
text = SUBSTR (text,number,number) |
The first parameter is the text, the second indicates at which symbol the extract begins, and the third parameter indicates the length of the extract. SUBSTR('Hallo Welt',1,5) -> Hallo SUBSTR('Hallo Welt',7,4) -> Welt
|
text = GETTHREADTEXT (number,text,text,number) |
Using the following expression you can generate different output. NAME = GETTHREADTEXT(D,'DIN 13','',P,'NAME')
A detailed description can be found under Section 10.5.4.3.11.1.1.2, “Fine thread - variants ”. |
number = GETTHREADVALUE (number,text,text,number) |
Compare the preceding function GETTHREADTEXT gets a text from the table and GETTHREADVALUE a DOUBLE value. |
These functions may occur in conditions ( IF (L1.LT.SQRT(25)) THEN ... ) or in allocations of numeric variables ( D3=LOGL1 or A=(B+5)*3-10/2 or C=SQRT(A**2+B**2) ).