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
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
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
nicolas
RE: Editing macros (mapkeys) in proE
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!