Show partial value of attribute in title block
Show partial value of attribute in title block
(OP)
I'm using <W@$SH_PART_NAME> to call up the part number for my title block but my part number also contains a description. Is there a way to show the first 8 characters of the attribute being called?
So using <W@$SH_PART_NAME> + some magic on "12345678-A Bracket Asy" will only show "12345678"?
This is only a problem because I'm stuck with what I have.
So using <W@$SH_PART_NAME> + some magic on "12345678-A Bracket Asy" will only show "12345678"?
This is only a problem because I'm stuck with what I have.





RE: Show partial value of attribute in title block
www.nxjournaling.com
RE: Show partial value of attribute in title block
Now I'm searching for something to count the number of characters in a string so I can set my substring value to it less 4. This is to eliminate ".prt" at the end of my ug_askcurrentworkpart().
As I'm typing this, I'm thinking I saw a find / replace function that might do the trick.
I used a bunch of IF statements to find the location of the first space. It works but I'm suspecting there's a function that is more efficient.
Thanks!
RE: Show partial value of attribute in title block