×
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

String operations on parameters in notes

String operations on parameters in notes

String operations on parameters in notes

(OP)
Is there any way to pull off the last few characters out of a parameter name for a note?

I name my solid models my part number.  On the drawing the drawing number then becomes &MDL.GENERIC.NAME.  I have a reference to the inspection drawing which is numbered IRXXXXX, where XXXXX are the last 5 digits in the drawing number.

Is there away that I can take just the last 5 characters out of my &MDL.GENERIC.NAME parameter and place them in a note?

Thanks

RE: String operations on parameters in notes

(OP)
It would also work if I were able to do a string operations with relations, if anyone knows how to do that.

RE: String operations on parameters in notes

(OP)
Never mind guys, I figured out my own problem using the relations method.

If anyone stumbles on this later here is what I did:
count=string_length(DRWNUM)
last=extract(DRWNUM,count-4,5)
IR="IR"+last

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