×
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

Editing macros (mapkeys) in proE

Editing macros (mapkeys) in proE

Editing macros (mapkeys) in proE

(OP)
Hi there,

I have a lot of ".stp" files to import into proE and to convert into ".prt" or ".asm" files ; to do that i wanted to use macros. I managed to create a macro (mapkey) to convert one file, and i wanted to edit it in order to specify all the files i had to convert, but i don't manage to edit the macro.

Does anybody know how to do that ? In Catia v5 for example, it is possible to edit a macro with Visual Studio and add lines in VB, is there any similar feature in ProE ?

Thanks for your time,

Nicolas

RE: Editing macros (mapkeys) in proE

A hint to making mapkeys that can be editted is to NOT use the icons, but to use the menus.
You should be able to record a single mapkey that opens a file, then cut and paste the File-Open section substituting the next file name. You may have to close/save the file after you open it to avoid running out of memory.

"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
Sr IS Technologist
L-3 Communications

RE: Editing macros (mapkeys) in proE

(OP)
thanks for the tip but i don't really see what you mean : i don't manage to access to any code of the macro.... the only possibility i have to register a mapkey is in the "config.pro" file... i can't save the mapkey into a separate file....

nicolas

RE: Editing macros (mapkeys) in proE

The best way I've found to code repetitive macros is as follows:
1. Record an example mapkey, like the one you used to convert the first file.
2. Save the mapkey to a .pro file
3. open the .pro file with a text editor program, like notepad
4. You can now see the syntax for whatever you're trying to code the mapkey to do
5. use visual basic or some other program to generate the text for the repetitive mapkey, making whatever changes are necessary to each run; in your case the name of the file to be converted.
6. copy and paste the mapkey text into the .pro file using the text editor, then run the mapkey in pro/E.

Hope this helps!

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