×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Show partial value of attribute in title block

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.

RE: Show partial value of attribute in title block

(OP)
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!

RE: Show partial value of attribute in title block

(OP)
AH! you just answered one of these!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources