Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show partial value of attribute in title block

Status
Not open for further replies.

Kenevil

Automotive
Apr 2, 2013
47
0
0
US
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.
 
Replies continue below

Recommended for you

Perfect! Thanks, this is working great for me and opening a world of possibilities.

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!
 
Status
Not open for further replies.
Back
Top