Importing and Exporting Files > Publishing Figures > About Scripts
  
About Scripts
You can assign a custom script to be executed when you save or publish an illustration in Creo Illustrate.
You can configure the Save, Save As and Publish buttons to execute the assigned external script on save or publish.
You can customize the Save + and Publish + button labels and add them to the ribbon.
* 
When you rename or customize the Save + and Publish + buttons, you must restart Creo Illustrate to apply the changes.
Add Option for Custom Scripts to be Executed after Save and Publish
1. Click File > Options. The Creo IllustrateOptions dialog box opens.
2. On the left, under General, click Process. The General-Process page opens.
3. To execute a script after saving a file, define the following parameters for the Save + button. For publishing, skip to step 4.
Label—Type a label
Run—Select a script file to run
1. Click ..., and then select a script file from the Select File dialog box.
Supported file formats include the following:
.bat
.cmd
.exe
2. Click Open to select the script. The external script gets the saved or published file full path as a single parameter.
3. Select Use ‘Save’ button to run the script each time a file is saved.
* 
Because the current .c3di file will be locked as long as it is open in Creo Illustrate, the file will need to be copied in the custom script before further processing.
4. To execute a script after publishing a file, define the following parameters for the Publish + button:
Label—Type a label
Run—Select a script file to run
1. Click ..., and then select a script from the Select File dialog box.
2. Click Open to run the script. The external script gets the saved or published file full path as a single parameter.
3. Select Use ‘Publish’ button to run the script each time a file is published.
5. Click Apply to apply the settings and continue setting options, or click OK to apply the settings and close the dialog box.