Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
Hi everyone,
I have a multiple mapkey but every time I need to choose the same folder to save each mapkey... do have you a solution to save all the files in the same folder in one time?
Thanks in advance
my Mapkey :
mapkey exp @MAPKEY_LABELexport fichier neutre;~ Command `ProCmdViewRefit` ;\
mapkey(continued) ~ Close `main_dlg_cur` `appl_casc`;~ Command `ProCmdModelSaveAs` ;\
mapkey(continued) ~ Open `file_saveas` `type_option`;~ Close `file_saveas` `type_option`;\
mapkey(continued) ~ Select `file_saveas` `type_option` 1 `db_617`;\
mapkey(continued) ~ Update `file_saveas` `Inputname` ``;\
mapkey(continued) ~ Activate `file_saveas` `view_favorites`;\
mapkey(continued) @MANUAL_PAUSEENREGISTREMENT FICHIER PDF\n1- CHOISIR EMPLACEMENT\n2- SAISIR NOM DU FICHIER\n3- CLIQUER SUR REPRENDRE;~ Activate `file_saveas` `OK`;\
mapkey(continued) ~ Activate `intf_profile` `OkPshBtn`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node0`;\
mapkey(continued) ~ RButtonArm `main_dlg_cur` `PHTLeft.AssyTree` `node0`;\
mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `PREVIEW_POPUP_TIMER` \
mapkey(continued) `main_dlg_w5:PHTLeft.AssyTree:<NULL>`;\
mapkey(continued) ~ PopupOver `main_dlg_cur` `PM_PHTLeft.AssyTree` 1 `PHTLeft.AssyTree`;\
mapkey(continued) ~ Open `main_dlg_cur` `PM_PHTLeft.AssyTree`;\
mapkey(continued) ~ Close `main_dlg_cur` `PM_PHTLeft.AssyTree`;\
mapkey(continued) ~ Trail `MiniToolbar` `MiniToolbar` `UIT_TRANSLUCENT` `NEED_TO_CLOSE`;\
mapkey(continued) ~ Close `main_dlg_cur` `appl_casc`;~ Command `ProCmdModelSaveAs` ;\
mapkey(continued) ~ Open `file_saveas` `type_option`;~ Close `file_saveas` `type_option`;\
mapkey(continued) ~ Select `file_saveas` `type_option` 1 `db_137`;\
mapkey(continued) ~ Update `file_saveas` `Inputname` ``;\
mapkey(continued) ~ Activate `file_saveas` `view_favorites`;\
mapkey(continued) @MANUAL_PAUSEENREGISTREMENT FICHIER DXF\n1- CHOISIR EMPLACEMENT\n2- SAISIR NOM DU FICHIER\n3- CLIQUER SUR REPRENDRE;~ Activate `file_saveas` `OK`;\
mapkey(continued) ~ Activate `export_2d_dlg` `OK_Button`;\
mapkey(continued) ~ RButtonArm `main_dlg_cur` `PHTLeft.AssyTree` `node0`;\
mapkey(continued) ~ PopupOver `main_dlg_cur` `PM_PHTLeft.AssyTree` 1 `PHTLeft.AssyTree`;\
mapkey(continued) ~ Open `main_dlg_cur` `PM_PHTLeft.AssyTree`;\
mapkey(continued) ~ Close `main_dlg_cur` `PM_PHTLeft.AssyTree`;\
mapkey(continued) ~ Trail `MiniToolbar` `MiniToolbar` `UIT_TRANSLUCENT` `NEED_TO_CLOSE`;\
mapkey(continued) ~ Command `ProCmdOpenModel@PopupMenuTree` ;\
mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `PREVIEW_POPUP_TIMER` \
mapkey(continued) `main_dlg_w4:PHTLeft.AssyTree:<NULL>`;~ Close `main_dlg_cur` `appl_casc`;\
mapkey(continued) ~ Command `ProCmdNamedViewsGalSelect` `Standard Orientation`;\
mapkey(continued) ~ Command `ProCmdModelSaveAs` ;~ Open `file_saveas` `type_option`;\
mapkey(continued) ~ Close `file_saveas` `type_option`;\
mapkey(continued) ~ Select `file_saveas` `type_option` 1 `db_539`;\
mapkey(continued) ~ Update `file_saveas` `Inputname` ``;\
mapkey(continued) ~ Activate `file_saveas` `view_favorites`;\
mapkey(continued) @MANUAL_PAUSEENREGISTREMENT FICHIER STP\n1- CHOISIR EMPLACEMENT\n2- SAISIR NOM DU FICHIER\n3- CLIQUER SUR REPRENDRE;~ Activate `file_saveas` `OK`;
mapkey(continued) ~ Activate `main_dlg_cur` `page_Tools_control_btn` 1;\
mapkey(continued) ~ Command `ProCmdMmParams` ;~ Select `relation_dlg` `MenuBar1` 1 `File`;\
mapkey(continued) ~ Select `relation_dlg` `CascadeExport`;~ Close `relation_dlg` `MenuBar1`;\
mapkey(continued) ~ Activate `relation_dlg` `PBExportXML`;\
mapkey(continued) @MANUAL_PAUSEENREGISTREMENT FICHIER XML\ CHOISIR UN EMPLACEMENT;~ Activate `file_saveas` `OK`;\
mapkey(continued) ~ Command `ProFileSelPushOpen@context_dlg_open_cmd` ;\
mapkey(continued) ~ FocusIn `relation_dlg` `ParamsPHLay.ParTable`;\
mapkey(continued) ~ Activate `relation_dlg` `PB_OK`;
Hi,
1.] set target directory as Creo working directory
2.] run your mapkey (you can remove @MANUAL_PAUSE from it)
Rather than picking the folder location in the user interface, if you paste in the folder location into the save dialog box then that path will be written to your mapkey:
~ Command `ProCmdModelSaveAs` ;\
mapkey(continued) ~ Open `file_saveas` `type_option`;~ Close `file_saveas` `type_option`;\
mapkey(continued) ~ Select `file_saveas` `type_option` 1 `db_539`;\
mapkey(continued) ~ Input `file_saveas` `Inputname` ``;~ Update `file_saveas` `Inputname` ``;\
mapkey(continued) ~ Input `file_saveas` `Inputname` `C:\\temp\\subfolder\\temp.stp`;\
mapkey(continued) ~ Update `file_saveas` `Inputname` `C:\\temp\\subfolder\\temp.stp`;\
mapkey(continued) ~ Activate `file_saveas` `OK`;~ Activate `UI Message Dialog` `ok`;\
mapkey(continued) ~ Activate `intf_export` `OkPushBtn`;