Inventor Customization

Inventor Customization

Reply
Contributor
aales
Posts: 15
Registered: ‎11-13-2007
Message 1 of 4 (255 Views)

PDF TranslatorAddIn options

255 Views, 3 Replies
10-01-2013 06:53 AM

I am using Inventor 2011. When I display dialog with options for export to PDF in Inventor, all options in this dialog I can set programatically except one - something like Print excluded sheets(I translate it to English from Czech version). This option is accessible when PrintAllSheets or PrintSheetRange option is set.

I can't find it in option values list for PDF in help file. Is it only undocumented or is it not accesible programatically?

Thanks for answers

ADN Support Specialist
xiaodong.liang
Posts: 1,335
Registered: ‎06-12-2011
Message 2 of 4 (205 Views)

Re: PDF TranslatorAddIn options

10-10-2013 09:21 PM in reply to: aales

Hi,

 

The sample of the help doc has indicated the options. 

 

' Check whether the translator has 'SaveCopyAs' options
    If PDFAddIn.HasSaveCopyAsOptions(oDocument, oContext, oOptions) Then

        ' Options for drawings...

        oOptions.Value("All_Color_AS_Black") = 0

        'oOptions.Value("Remove_Line_Weights") = 0
        'oOptions.Value("Vector_Resolution") = 400
        'oOptions.Value("Sheet_Range") = kPrintAllSheets
        'oOptions.Value("Custom_Begin_Sheet") = 2
        'oOptions.Value("Custom_End_Sheet") = 4
    End If


Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Contributor
aales
Posts: 15
Registered: ‎11-13-2007
Message 3 of 4 (197 Views)

Re: PDF TranslatorAddIn options

10-10-2013 10:41 PM in reply to: xiaodong.liang

Thanks,

I know this part of the help topic. But in the dialog box for PDF is one more option - checkbox Print excluded sheets. (The same checkbox for printing is PrintExcludedSheets property in DrawingPrintManager object in API).

Is this option for PDF accessible programmatically or not?

ADN Support Specialist
xiaodong.liang
Posts: 1,335
Registered: ‎06-12-2011
Message 4 of 4 (179 Views)

Re: PDF TranslatorAddIn options

10-13-2013 08:15 PM in reply to: aales

Hi,

 

I was told that this option has not been exposed. Sorry.

 

probably you could use PDF API to exclude the pages after Inventor produces the PDF.



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.