11-09-2018
06:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-09-2018
06:38 AM
Export To PDF options
While exporting to PDF Through VBA (api), it is not possible to alter the option Print excluded sheets and Display Published File in Viewer. (see screenshot):Export -> PDF -> options
What I tried so far without success:
- Searching for the options here on the forum: only 6 options found.
- Using the Translator.HasSaveCopyAsOptions to get the default options:
I've found 43 options, including the previous 6 and an options Launch_Viewer - Launch_Viewer = False didn't work
- I've tried ViewPDFWhenFinished = False (option found for 3D PDF)
Any help or suggestion in the right direction would be welcome.
=================================
If this is the solution, push the solution button
(and maybe some kudos)
Autodesk Product Design Suit - Ultimate edition (Subscription)
If this is the solution, push the solution button
Autodesk Product Design Suit - Ultimate edition (Subscription)
11-09-2018
08:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-09-2018
08:32 AM
I'll agree I can't find that option. Can you try this...
Dim Doc As DrawingDocument = ThisApplication.ActiveDocument Dim MyArrayList As New ArrayList For Each oSheet As Sheet In Doc.Sheets If oSheet.ExcludeFromPrinting Then MyArrayList.Add(oSheet.Name) oSheet.ExcludeFromPrinting = False End If Next
'your code to export pdf here
For Each oSheet As Sheet In Doc.Sheets If MyArrayList.Contains(oSheet.Name) Then oSheet.ExcludeFromPrinting = True Next
If I've helped you, please help me by supporting this idea.
Mass Override for Each Model State
Custom Glyph Icon for iMates
Mass Override for Each Model State
Custom Glyph Icon for iMates
11-11-2018
09:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-11-2018
09:07 PM
Engineering team knows about Launch_Viewer option which is not working for PDF translator. A change request is already created with engineering team and details are given below.
INVGEN - 2958 - API: The Launch_Viewer option for PDF translator does not work (Display Published File in Viewer)
As a workaround, you can try suggestion in below forum discussion link.
Thanks and regards,
CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network

06-06-2022
08:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report