<?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: Inventor 2019 - Export to PDF iLogic E_POINTER Error in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2019-export-to-pdf-ilogic-e-pointer-error/m-p/8032174#M88612</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Sorry for posting in the wrong location&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1649869"&gt;@Mark.Lancaster&lt;/a&gt;&amp;nbsp;and thank you for relocating my issue.&lt;/P&gt;&lt;P&gt;- Thanks for the idea &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;but changing the directory to&amp;nbsp;Dialog.SelectedPath = "C:\" did not solve the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inventor 2019 now saves your previous setting when exporting to pdf.&amp;nbsp; Therefore, the following code is no longer needed.&amp;nbsp; If I remove the code listed below, the code runs fine:&lt;/P&gt;&lt;PRE&gt;If Not oPDFAddIn.HasSaveCopyAsOptions(oDataMedium, oContext, oOptions) Then Exit Sub
oOptions.Value("All_Color_AS_Black") = 0
oOptions.Value("Remove_Line_Weights") = 1
oOptions.Value("Vector_Resolution") = 4800
oOptions.Value("Sheet_Range") = Inventor.PrintRangeEnum.kPrintAllSheets
oOptions.Value("Custom_Begin_Sheet") = 1
oOptions.Value("Custom_End_Sheet") = 100&lt;/PRE&gt;&lt;P&gt;The only downfall to this solution is that you have to make sure everyone using the code has the same settings saved on their local machine.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be nice if I could still find a way to use the custom options in the code to make sure everyone exports the pdf's using the same settings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 May 2018 13:05:01 GMT</pubDate>
    <dc:creator>BAnderson</dc:creator>
    <dc:date>2018-05-29T13:05:01Z</dc:date>
    <item>
      <title>Inventor 2019 - Export to PDF iLogic E_POINTER Error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2019-export-to-pdf-ilogic-e-pointer-error/m-p/8018033#M88609</link>
      <description>&lt;P&gt;We have recently upgraded from Inventor 2017 to 2019.&amp;nbsp; We skipped the 2018 upgrade.&amp;nbsp; In doing so, our rule to export our drawings to PDF's no longer work and result in the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error in rule: GENERATE PDF - ALL SHEETS, in document: TAPESTRY CS NC_BOM.idw&lt;/P&gt;&lt;P&gt;Invalid pointer (Exception from HRESULT: 0x80004003 (E_POINTER))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&amp;nbsp; Code listed below.&amp;nbsp; You will have to change the local directory for export...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'Save PDF with options
path_and_namePDF = ThisDoc.PathAndFileName(False)
oPDFAddIn = ThisApplication.ApplicationAddIns.ItemById("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}")
oOrderName = iProperties.Value("Custom", "ORDER NAME")
oOrderNumber = iProperties.Value("Custom", "ORDER NUMBER")
oDocument = ThisApplication.ActiveDocument
oContext = ThisApplication.TransientObjects.CreateTranslationContext
oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism
oOptions = ThisApplication.TransientObjects.CreateNameValueMap
oDataMedium = ThisApplication.TransientObjects.CreateDataMedium

' Define folder browse dialog
Dim Dialog = New FolderBrowserDialog()
Dialog.SelectedPath = "T:\ENG 3D\JOBS"
Dialog.ShowNewFolderButton = True
Dialog.Description = "Choose Folder for Export..."
If DialogResult.OK = Dialog.ShowDialog() Then
ExportPath = Dialog.SelectedPath &amp;amp; "\"
Else
Exit Sub
End If

If Not oPDFAddIn.HasSaveCopyAsOptions(oDataMedium, oContext, oOptions) Then Exit Sub
oOptions.Value("All_Color_AS_Black") = 0
oOptions.Value("Remove_Line_Weights") = 1
oOptions.Value("Vector_Resolution") = 4800
oOptions.Value("Sheet_Range") = Inventor.PrintRangeEnum.kPrintAllSheets
oOptions.Value("Custom_Begin_Sheet") = 1
oOptions.Value("Custom_End_Sheet") = 100

If iProperties.Value("Project", "Revision Number") &amp;gt;= "1" Then
ExportPath = ExportPath &amp;amp; " R" &amp;amp; iProperties.Value("Project", "Revision Number")
End If
oDataMedium.FileName = ExportPath &amp;amp; oOrderName &amp;amp; " " &amp;amp; oOrderNumber &amp;amp; " BOM " &amp;amp; DateString &amp;amp; ".pdf"
Try
oPDFAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMedium)

' Ask the user if he wants to open the file
question2 = MessageBox.Show("Open PDF file?", "Question",MessageBoxButtons.YesNo,MessageBoxIcon.Question)
If question2 = vbYes Then
ThisDoc.Launch(oDataMedium.FileName)
End If
Catch
MessageBox.Show("PDF not created, most likely someone else has it open.", "No PDF for you " &amp;amp; ThisApplication.GeneralOptions.UserName &amp;amp; "!")
End Try
Exit Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 12:47:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2019-export-to-pdf-ilogic-e-pointer-error/m-p/8018033#M88609</guid>
      <dc:creator>BAnderson</dc:creator>
      <dc:date>2018-05-22T12:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2019 - Export to PDF iLogic E_POINTER Error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2019-export-to-pdf-ilogic-e-pointer-error/m-p/8018048#M88610</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3990229"&gt;@BAnderson&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not saying no one will come along and give you an answer..&amp;nbsp; But programming questions and issues should be asked in the Inventor Customization forum (&lt;A href="https://forums.autodesk.com/t5/inventor-customization/bd-p/120).&amp;nbsp;" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/bd-p/120).&amp;nbsp;&lt;/A&gt; I will have the moderator relocate your posting to better suit your needs.&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 12:53:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2019-export-to-pdf-ilogic-e-pointer-error/m-p/8018048#M88610</guid>
      <dc:creator>Mark.Lancaster</dc:creator>
      <dc:date>2018-05-22T12:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2019 - Export to PDF iLogic E_POINTER Error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2019-export-to-pdf-ilogic-e-pointer-error/m-p/8018658#M88611</link>
      <description>Replace the "Dialog.SelectedPath = "T:\ENG 3D\JOBS""&lt;BR /&gt;with Dialog.SelectedPath = "C:\"&lt;BR /&gt;&lt;BR /&gt;and take a look if this works..&lt;BR /&gt;If this is working you should prefer to use the IP address instead of drive letter.</description>
      <pubDate>Tue, 22 May 2018 16:25:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2019-export-to-pdf-ilogic-e-pointer-error/m-p/8018658#M88611</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-05-22T16:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2019 - Export to PDF iLogic E_POINTER Error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2019-export-to-pdf-ilogic-e-pointer-error/m-p/8032174#M88612</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Sorry for posting in the wrong location&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1649869"&gt;@Mark.Lancaster&lt;/a&gt;&amp;nbsp;and thank you for relocating my issue.&lt;/P&gt;&lt;P&gt;- Thanks for the idea &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;but changing the directory to&amp;nbsp;Dialog.SelectedPath = "C:\" did not solve the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inventor 2019 now saves your previous setting when exporting to pdf.&amp;nbsp; Therefore, the following code is no longer needed.&amp;nbsp; If I remove the code listed below, the code runs fine:&lt;/P&gt;&lt;PRE&gt;If Not oPDFAddIn.HasSaveCopyAsOptions(oDataMedium, oContext, oOptions) Then Exit Sub
oOptions.Value("All_Color_AS_Black") = 0
oOptions.Value("Remove_Line_Weights") = 1
oOptions.Value("Vector_Resolution") = 4800
oOptions.Value("Sheet_Range") = Inventor.PrintRangeEnum.kPrintAllSheets
oOptions.Value("Custom_Begin_Sheet") = 1
oOptions.Value("Custom_End_Sheet") = 100&lt;/PRE&gt;&lt;P&gt;The only downfall to this solution is that you have to make sure everyone using the code has the same settings saved on their local machine.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be nice if I could still find a way to use the custom options in the code to make sure everyone exports the pdf's using the same settings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 13:05:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2019-export-to-pdf-ilogic-e-pointer-error/m-p/8032174#M88612</guid>
      <dc:creator>BAnderson</dc:creator>
      <dc:date>2018-05-29T13:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2019 - Export to PDF iLogic E_POINTER Error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2019-export-to-pdf-ilogic-e-pointer-error/m-p/8181215#M88613</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3990229"&gt;@BAnderson&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be nice if I could still find a way to use the custom options in the code to make sure everyone exports the pdf's using the same settings.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi i found a change to the code here&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/pdf-i-logic-problems-after-2018-upgrade/m-p/7429701#M75478" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/pdf-i-logic-problems-after-2018-upgrade/m-p/7429701#M75478&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change "oDataMedium" to "oDocument" when "oDocument = ThisApplication.activeDocument".&lt;/P&gt;&lt;PRE&gt;'If oPDFAddIn.HasSaveCopyAsOptions(oDataMedium, oContext, oOptions) Then 'old
 	&lt;STRONG&gt;If oPDFAddIn.HasSaveCopyAsOptions(oDocument, oContext, oOptions) Then 'new&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;It is working for me.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 00:58:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2019-export-to-pdf-ilogic-e-pointer-error/m-p/8181215#M88613</guid>
      <dc:creator>xenocatalyst</dc:creator>
      <dc:date>2018-08-07T00:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2019 - Export to PDF iLogic E_POINTER Error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2019-export-to-pdf-ilogic-e-pointer-error/m-p/9469266#M88614</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;STRIKE&gt;If Not oPDFAddIn.HasSaveCopyAsOptions(oDataMedium, oContext, oOptions) Then Exit Sub&lt;/STRIKE&gt; oOptions.Value("All_Color_AS_Black") = 0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;oOptions.Value("Remove_Line_Weights") = 1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;oOptions.Value("Vector_Resolution") = 4800 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;oOptions.Value("Sheet_Range") = Inventor.PrintRangeEnum.kPrintAllSheets &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;oOptions.Value("Custom_Begin_Sheet") = 1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;oOptions.Value("Custom_End_Sheet") = 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In ilogic not need "oPDFAddIn.HasSaveCopyAsOptions" in inventor 2019, only use "oOptions.Vaule("") = " can working.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2020 02:16:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2019-export-to-pdf-ilogic-e-pointer-error/m-p/9469266#M88614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-25T02:16:14Z</dc:date>
    </item>
  </channel>
</rss>

