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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Macro To Save Drawing As Pdf

ptc-5871495
1-Visitor

Macro To Save Drawing As Pdf

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


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
3 REPLIES 3

did u try mapkey?

Inoram
14-Alexandrite
(To:ptc-5871495)

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;

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags