Article - CS427400

How to open a file from workspace with mapkey (Macro) in Creo Parametric?

Modified: 20-Sep-2024   


Applies To

  • Creo Parametric 7.0 to 10.0

Description

  • How to open a file from workspace with mapkey (Macro) 
    • 2024-09-20_17-28-13.gif
  • The config.pro options are available after the maykey is saved
  • Refer the sample maykey below saved in config.pro
    • mapkey $F2 @MAPKEY_LABELopen_ws;~ Command `ProCmdModelOpen` ;\
      
      mapkey(continued) ~ Trail `` `` `DLG_PREVIEW_POST` `file_open`;\
      
      mapkey(continued) ~ Move `file_open` `file_open` 2 2.447154 6.317073;\
      
      mapkey(continued) ~ Activate `file_open` `workspace_pb`;\
      
      mapkey(continued) ~ Select `file_open` `Ph_list.Filelist` 1 `0000000546.prt`;\
      
      mapkey(continued) ~ Trail `` `` `PREVIEW_POPUP_TIMER` `file_open:Ph_list.Filelist:<NULL>`;\
      
      mapkey(continued) ~ Command `ProFileSelPushOpen_Standard@context_dlg_open_cmd`;

       
This is a printer-friendly version of Article 427400 and may be out of date. For the latest version click CS427400