getting the attribut without the first 11 letters
getting the attribut without the first 11 letters
(OP)
Hello i need your help,
is it possible to get an attribute in the drafting application in a table but get only for example the attribute value without the fiorst 11 letters. For example in the part is an attribute abc = 11111111111abcdef.
I want in the drafting application getting the attribute but without the first 11 letters. Íf yes, how is the code to make this?
Thanks
is it possible to get an attribute in the drafting application in a table but get only for example the attribute value without the fiorst 11 letters. For example in the part is an attribute abc = 11111111111abcdef.
I want in the drafting application getting the attribute but without the first 11 letters. Íf yes, how is the code to make this?
Thanks





RE: getting the attribut without the first 11 letters
Assuming NX 9 (will be similar in other versions), open the expressions dialog, switch the listed expressions to "attribute expressions", look for the expression that references your desired attribute (let's assume it is p1). Now make a new string expression with the formula subString(p1, 12,1000). The 12 tells the function to start with the 12th character in the given string, the 1000 can be any number equal to or larger than the number of characters in the given string.
www.nxjournaling.com
RE: getting the attribut without the first 11 letters
A solution is to use the length() function in combination with the substring function.
name = substring(p1,12,length(p1)) will always return the 12th through the end of the p1 string.
If p1 is 11111111111abcdefghi, then name will be abcdefghi
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
RE: getting the attribut without the first 11 letters
www.nxjournaling.com
RE: getting the attribut without the first 11 letters