Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE on being selected by the Eng-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
Joined
Apr 2, 2013
Messages
47
Location
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.
 
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!
 
AH! you just answered one of these!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top