Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Editing macros (mapkeys) in proE 1

Status
Not open for further replies.

nicosaun

Mechanical
Jul 3, 2006
2
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
 
Replies continue below

Recommended for you

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
 
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
 
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor