Macro To Save Drawing As Pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Labels:
-
Data Exchange
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
did u try mapkey?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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;