Example: Create a relation that writes a parameter to a text file:
mapkey step_go @MAPKEY_NAMEExport STEP & Archive;\ ~ Command `ProCmdModelSaveAs` ;\ ~ Select `file_saveas` `type_option` 1 `STEP`;\ ~ Open `file_saveas` `ph_list.Filelist`; \ ~ Select `file_saveas` `ph_list.Filelist` 1 `C:\temp\current_model.step`;\ ~ Command `ProCmdFileSave` ;\ ~ Command `ProCmdUtilSystem` `system("C:\creo_scripts\export_step_processor.bat C:\temp\current_model.step")`;\ ~ Command `ProCmdFileEraseNotDisp` ; creo mapkey os script example
Below is a draft blog post designed to help your readers bridge the gap between Creo commands and operating system automation. Supercharging Creo: How to Use Mapkeys with OS Scripts Example: Create a relation that writes a parameter