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 | |
---|---|
PARTdesigner expressions can be used at different places (e.g. in the sketch or in dimensionings).[131] |
VAL SIN(VAL) | Sine |
VAL COS(VAL) | Cosine |
VAL ASIN(VAL) | Arc sine |
VAL ACOS(VAL) | Arc cosine |
VAL TAN(VAL) | Tangent |
Check whether STR1 contains STR2: CONTAINS("Sechskantschraube","schraube") = 1 CONTAINS(NENNX,"X") = 1
|
|
The function assigns +1 for x > 0, 0 for x = 0 and -1 for < 0. 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) |
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 gets a text from the table and GETTHREADVALUE a DOUBLE value. |
VAL GETTHREADTEXT(STR,STR,VAL,STR) |
Using the following expression you can generate different output. NAME = GETTHREADTEXT(D,'DIN 13','',P,'NAME')
A detailed description is found under Section 7.9.3.11.1.1.2, “Different pitches and derived automatic calculations for e.g. Row Label 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! |
[131] Similar, but not identical, functions can be used in attribute algorithms. On this compare Section 7.8.11.1, “Mathematical functions (Attribute algorithm) ”.