cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Translate the entire conversation x

Create mapkey with a variable to save a .pdf to a path and date

ptc-292364
6-Contributor

Create mapkey with a variable to save a .pdf to a path and date

I would like to create a map key to save a file to the current working directory\Release with the current date. Is there a way to do this with a variable? ie  %CWD\Release\filename.%mm%dd%yy.pdf

3 REPLIES 3
tbraxton
22-Sapphire I
(To:ptc-292364)

It is possible to call an external script from within a mapkey. I think you would need to use this function in order to achieve this using a mapkey. Refer to this thread for examples.

 

https://community.ptc.com/t5/Customization/How-to-call-a-external-applications-using-OS-script-mapkey/td-p/647527 

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
ptc-292364
6-Contributor
(To:tbraxton)

It doesn't look like an external script understands what the Current Working Directory is outside of Creo.

tbraxton
22-Sapphire I
(To:ptc-292364)

I am pretty sure that the APIs have calls that will return the current working directory. The VB and J-Link API is part of every Creo license so that could be one option for you.

 

https://support.ptc.com/help/creo_toolkit/vbapi_plus/usascii/index.html#page/creo_toolkit/user_guide/Directories.html 

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
Announcements
NEW Creo+ Topics: PTC Control Center and Creo+ Portal

Top Tags