![]() | Note |
---|---|
PARTdesigner expressions can be used at different places (e.g. in the sketch or in dimensionings).[132] |
VAL SIN(VAL) | Sine |
VAL COS(VAL) | Cosine |
VAL ASIN(VAL) | Arcussinus |
VAL ACOS(VAL) | Arcuscosinus |
VAL TAN(VAL) | Tangent |
Check whether STR1 contains STR2: CONTAINS("Sechskantschraube","schraube") = 1 CONTAINS(NENNX,"X") = 1
| |
The function assigns each x > 0 a +1, x = 0 a 0 and each x < 0 a -1. SGN(10) = 1 SGN(5) = 1 SGN(0) = 0 SGN(-10) = -1 SGN(-5) = -1
| |
STR TOK(STR,STR,VAL) |
TOK(string, separator, position of the searched value) Result: String of the searched position TOK("a,b,c,d,e,f",",",4) = d
|
Result: Number of string elements NTOK("a,b,c,d,e,f",",") = 6
| |
STR QTOK(STR,STR,STR,VAL) |
QTOK(string, separator, sign of text identification, position of the searched value) Result: string of the searched position in quotation marks The expression is similar to TOK, but here the particular elements of the string are marked with a sign of text identification. TOK("<'a','b','c','d','e','f'",",","'",5) = "e"
|
NQTOK(string, separator, sign of text identification) Result: Number of string elements NQTOK("<'a','b','c','d','e','f'",",","'") = 6
| |
STR CSTR(VAL) | Transformation from type DOUBLE to type STRING |
VAL SQRT(VAL) | Square root |
VAL ABS(VAL) |
|-3.4| = 3.4
|
VAL CUT(VAL) |
Cutting off the secondary part CUT(3.8) = 3
|
VAL RND(VAL) |
RND(3.8) = 4 RND(1.4) = 1
|
STR LCASE(STR) | Transformation of all letters to lower case letters |
STR UCASE(STR) | Transformation of all letters to upper case letters |
INDEX(string, searched part of string) Result: Position of part of the string INDEX("test","e")=2
| |
STR MID(STR,VAL,VAL) |
MID(string,starting position,number of elements to cut out to the right) MID("test",2,2) = "es"
|
STR LEFT(STR,VAL) |
LEFT(string, number of elements to cut out from the left side) LEFT("test",2) = "te"
|
STR RIGHT(STR,VAL) |
RIGHT(string, number of elements to cut out from the right side) RIGTH("test",2) = "st"
|
VAL GETTHREADVALUE(STR,STR,VAL,STR) |
Compare the following function. GETTHREADTEXT retrieves a text from the table and GETTHREADVALUE retrieves a DOUBLE value. |
VAL GETTHREADTEXT(STR,STR,VAL,STR) |
Various output texts can be generated using the following expression. NAME = GETTHREADTEXT(D,'DIN 13','',P,'NAME')
A detailed description can be found at Section 7.9.3.14.1.1.2, “Various thread pitches and derived automatic calculations for e.g. line description and core diameter ”. |
VAL KFIX(VAL) | Don't use, not supported! |
STR FORMATSTR(STR,STR) | Don't use, not supported! |
STR FORMATVAL(STR,VAL) | Don't use, not supported! |
[132] Similar, but not identical, functions can be used in attribute algorithms. On this compare Section 7.8.12.6, “Mathematical functions (feature algorithm ) ”.