×
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

Need Mapkey help: How to copy to clipboard

Need Mapkey help: How to copy to clipboard

Need Mapkey help: How to copy to clipboard

(OP)
What I want my mapkey to do is to copy the name of the part that I currently have activated. I have got it doing this by opening the rename function and copying and pasting out of that. However the copy and paste function actually puts the words into the macro not the copy and paste function so you end up having the same string as the first time you run the macro every time after that.  


If you have any opinions or thoughts on this (maybe even a solution please let me know)

RE: Need Mapkey help: How to copy to clipboard

In the 'relations' world, the variable 'rel_model_name' is the name of the current model.  But I'm not sure how you can extract this into your paste buffer.

I use it to construct a part number parameter based on our file naming convention.  This way when I copy a model to a new part, the part number parameter is always up to date and I don't carry forward an old part number by accident.

<tg>

RE: Need Mapkey help: How to copy to clipboard

I've often wished that mapkeys recorded actual actions rather than the literal information.  In other words, if I type record the text, if I Copy - Paste, record Copy - Paste.  Better yet, if it's changeable info, ask me how it should be recorded.

I think you may have to resort to a batch file to get what you want.  II have a series of mapkeys and batch files to append the revision to exported IGES, STEP, PDF, etc files.  I export to a folder then run a batch file that finds the file name through a directory listing.  Cumbersome, but it works.

I'd love to know if you find anything better.

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