Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Can anybody help???
I need a macro that can automatically create a pdf file directly from a drawing. Can this be done?
Also....
I need a macro that can get the currect document name and filename extension and display it in a msgbox (For testing only)
Many thanks in advance!!!
Darren
did u try mapkey?
There is already a button for PDF. If you want a macro (like you want the key binding) just make one of hitting that button.
This will do it. You need a file setup named production_pdf_release with the pdf export configuration you want. I then put a icon in the ribbon that calls the mapkey in drawing mode and creates the pdf and dxf.
mapkey rlplot @MAPKEY_NAMECreate plot file for electronic vault;\
mapkey(continued) @MAPKEY_LABELRelease plot to e vault;~ Command `ProCmdModelSaveAs`
mapkey(continued) ~ Close `main_dlg_cur` `adbFile_cb`;~ Open `file_saveas` `type_option`;\
mapkey(continued) ~ Close `file_saveas` `type_option`;\
mapkey(continued) ~ Select `file_saveas` `type_option`1 `db_617`;\
mapkey(continued) ~ Activate `file_saveas` `OK`;~ Activate `UI Message Dialog` `ok`;\
mapkey(continued) ~ Open `intf_profile` `opt_profile`;~ Close `intf_profile` `opt_profile`;\
mapkey(continued) ~ Select `intf_profile` `opt_profile`1 `production_pdf_release`;\
mapkey(continued) ~ Activate `intf_profile` `OkPshBtn`;\
mapkey(continued) %dxf;