<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: print excluded sheets (pdf) using API in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/print-excluded-sheets-pdf-using-api/m-p/5815659#M115580</link>
    <description>&lt;P&gt;drawing print manager will work if it is a print job. I am using translator addin to create the pdf with various options as required. presently I am using a workaround&amp;nbsp;to do the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim oSheet As Sheet
            If Me.CheckBoxExcluded.Checked = True Then
                For Each oSheet In oDrgDoc.Sheets
                    If oSheet.ExcludeFromPrinting = True Then
                        oSheet.ExcludeFromPrinting = False
                    End If
                Next
            End If

' and as below
ElseIf RB_SheetsInRange.Checked = True Then
                    Dim i As Integer
                    i = Me.NumericUpDownStart.Value
                    Do
                        oDrgDoc.Sheets(i).Activate()
                        oDoc = oDrgDoc.ActiveSheet.DrawingViews.Item(1).ReferencedDocumentDescriptor.ReferencedDocument
                        strfilename = oDoc.PropertySets.Item("Design Tracking Properties").Item("Part Number").Value
                        oDataMedium.FileName = Me.PathTextBox.Text &amp;amp; "\" &amp;amp; strfilename &amp;amp; ".pdf"
                        PDFAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMedium)
                        i = i + 1
                    Loop Until i = Me.NumericUpDownEnd.Value + 1
                End If&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;above is a part of my code which is using the workaround&lt;/P&gt;</description>
    <pubDate>Mon, 14 Sep 2015 13:29:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-14T13:29:29Z</dc:date>
    <item>
      <title>print excluded sheets (pdf) using API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/print-excluded-sheets-pdf-using-api/m-p/5814659#M115575</link>
      <description>&lt;P&gt;How to print excluded sheets to PDF via API. Is there any name&amp;nbsp;value map for this?&lt;/P&gt;</description>
      <pubDate>Sun, 13 Sep 2015 12:53:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/print-excluded-sheets-pdf-using-api/m-p/5814659#M115575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-13T12:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: print excluded sheets (pdf) using API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/print-excluded-sheets-pdf-using-api/m-p/5815056#M115576</link>
      <description>&lt;P&gt;Use print manager API object to access things req'd for printing.&lt;/P&gt;&lt;P&gt;Use API help/"Programming Help" from inventor/the search feature on the forums to find out how to do this all without relying on forum replies&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oDoc as Document&lt;/P&gt;&lt;P&gt;oDoc = ThisApplication.ActiveDocument&lt;/P&gt;&lt;P&gt;Dim oSheet As Sheet&lt;/P&gt;&lt;P&gt;For Each oSheet in oDoc.Sheets&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;oSheet.Activate&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;If oSheet.ExcludeFromCount = True&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Run print to pdf code here&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;End if&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 02:10:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/print-excluded-sheets-pdf-using-api/m-p/5815056#M115576</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-09-14T02:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: print excluded sheets (pdf) using API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/print-excluded-sheets-pdf-using-api/m-p/5815084#M115577</link>
      <description>&lt;P&gt;thanks for your replay, but this will work only when you want to print individual sheets as individual pdf files. And Iam using the same for that purpose in my Addinns. My requirement is to us the function for all Sheet and sheets in range. which is not mentioned in any of the API helps and forum threads.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 03:11:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/print-excluded-sheets-pdf-using-api/m-p/5815084#M115577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T03:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: print excluded sheets (pdf) using API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/print-excluded-sheets-pdf-using-api/m-p/5815624#M115578</link>
      <description>&lt;P&gt;Are you actually PRINTING to pdf, or are you just exporting using the translator add-in?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Does the pdf have layers or not?)&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 13:12:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/print-excluded-sheets-pdf-using-api/m-p/5815624#M115578</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-09-14T13:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: print excluded sheets (pdf) using API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/print-excluded-sheets-pdf-using-api/m-p/5815637#M115579</link>
      <description>&lt;P&gt;One thing you could do is just iterate through the sheets and flip the excluded status temporarily so that you can print the originally excluded sheets as the non-excluded sheets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also. ThisApplication.ActiveDocument.DrawingPrintManager might be something to look at. [Which is easily found through Programming help]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 13:17:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/print-excluded-sheets-pdf-using-api/m-p/5815637#M115579</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-09-14T13:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: print excluded sheets (pdf) using API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/print-excluded-sheets-pdf-using-api/m-p/5815659#M115580</link>
      <description>&lt;P&gt;drawing print manager will work if it is a print job. I am using translator addin to create the pdf with various options as required. presently I am using a workaround&amp;nbsp;to do the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim oSheet As Sheet
            If Me.CheckBoxExcluded.Checked = True Then
                For Each oSheet In oDrgDoc.Sheets
                    If oSheet.ExcludeFromPrinting = True Then
                        oSheet.ExcludeFromPrinting = False
                    End If
                Next
            End If

' and as below
ElseIf RB_SheetsInRange.Checked = True Then
                    Dim i As Integer
                    i = Me.NumericUpDownStart.Value
                    Do
                        oDrgDoc.Sheets(i).Activate()
                        oDoc = oDrgDoc.ActiveSheet.DrawingViews.Item(1).ReferencedDocumentDescriptor.ReferencedDocument
                        strfilename = oDoc.PropertySets.Item("Design Tracking Properties").Item("Part Number").Value
                        oDataMedium.FileName = Me.PathTextBox.Text &amp;amp; "\" &amp;amp; strfilename &amp;amp; ".pdf"
                        PDFAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMedium)
                        i = i + 1
                    Loop Until i = Me.NumericUpDownEnd.Value + 1
                End If&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;above is a part of my code which is using the workaround&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 13:29:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/print-excluded-sheets-pdf-using-api/m-p/5815659#M115580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-14T13:29:29Z</dc:date>
    </item>
  </channel>
</rss>

