Script/mapkey to Print to PDF a specific view of a part
- September 4, 2022
- 2 replies
- 7439 views
I tried (in CREO 3.0) to create a mapkey that would go through these steps:
1) Click FILE --> PRINT --> click Quick Print
2) this brings up the PRINT windows, with Printer Name set to Microsoft Print to PDF
3) Click PROPERTIES
4) Click ADVANCED
5) PAPER SIZE: change from LETER to TABLOID
6) Click OK to close Advanced Options window
7) Click OK to close Document Properties window
8.) Click OK to close PRINT window
9) The "Save Print Output As" window opens
10) Type in File name: zzzz.pdf
11) Click SAVE button.
Problem is that the mapkey registration of commands stops at the Quick PRINT window and does not register any more clicks after that...
mapkey p= @MAPKEY_NAMEPrint to PDF, LANDSCAPE, ledger paper size.;\
mapkey(continued) @MAPKEY_LABELPRINT_LANDSCAPE_PDF;~ Close `main_dlg_cur` `appl_casc`;\
mapkey(continued) ~ Command `ProCmdQuickPrint`;
The default printer on my laptop is Microsoft Print to PDF, and the default is set to TABLOID size, but this does not seem to matter for CREO 3.0, it always defaults to LETTER in [Quick] Print. It may have to do with the box named PAPER AVAILABLE, which shows LETTER all the time and I could not find any way to change that to say TABLOID.
I tried everything on my laptop, from a Windows/system perspective, to make CREO 3.0 default to TABLOID.
So now I am left with making a script for CREO, but it seems that the mapkey register mechanism has its limitations (or I am not using it right).
Any suggestions?

