<?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 2018 iLogic error in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7075356#M101035</link>
    <description>&lt;P&gt;I am having a similar problem. &amp;nbsp;My code looks like what&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3072914" target="_self"&gt;Owner2229&lt;/A&gt;&amp;nbsp;posted, but I'm experiencing the same error. &amp;nbsp;My ilogic text is attached.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2017 18:47:26 GMT</pubDate>
    <dc:creator>dennis.throckmorton.vasteel</dc:creator>
    <dc:date>2017-05-10T18:47:26Z</dc:date>
    <item>
      <title>Inventor 2018 iLogic error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7073741#M101033</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have just updated to AIP 2018 on Windows 10. I was previously using AIP 2017 on Windows 7 and my drawing files (idw) have an iLogic rule to save to PDF triggered on file close. This rule will not run at all on AIP 2018 yet worked without hitch on AIP 2017...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following error message,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error in rule: SavePDF, in document: A02633.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;The more info tab shows,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.NullReferenceException: Invalid pointer (Exception from HRESULT: 0x80004003 (E_POINTER))&lt;BR /&gt;at Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack)&lt;BR /&gt;at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)&lt;BR /&gt;at LmiRuleScript.Main()&lt;BR /&gt;at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)&lt;BR /&gt;at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance would be appreciated. Code attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 07:40:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7073741#M101033</guid>
      <dc:creator>p.robson</dc:creator>
      <dc:date>2017-05-10T07:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2018 iLogic error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7073848#M101034</link>
      <description>&lt;P&gt;Hey, here's the error: In your code you're setting up the PDF addin up to the point where you want to export it. Then you use simple save as instead of export. There've been some changes in 2018 to the PDF export, so I guess that's what you're encountering.&lt;/P&gt;
&lt;P&gt;Yours:&lt;/P&gt;
&lt;PRE&gt;ThisDoc.Document.SaveAs(PDFPath &amp;amp; "\" &amp;amp; ThisDoc.FileName(False) &amp;amp; _
 " Rev" &amp;amp; oRevNum &amp;amp; " - " &amp;amp; oDescrip &amp;amp; ".pdf" , True)&lt;/PRE&gt;
&lt;P&gt;Should be:&lt;/P&gt;
&lt;PRE&gt;oDataMedium.FileName = PDFPath &amp;amp; "\" &amp;amp; ThisDoc.FileName(False) &amp;amp; _
 " Rev" &amp;amp; oRevNum &amp;amp; " - " &amp;amp; oDescrip &amp;amp; ".pdf"
oPDFAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMedium)&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 May 2017 08:39:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7073848#M101034</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2017-05-10T08:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2018 iLogic error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7075356#M101035</link>
      <description>&lt;P&gt;I am having a similar problem. &amp;nbsp;My code looks like what&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3072914" target="_self"&gt;Owner2229&lt;/A&gt;&amp;nbsp;posted, but I'm experiencing the same error. &amp;nbsp;My ilogic text is attached.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 18:47:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7075356#M101035</guid>
      <dc:creator>dennis.throckmorton.vasteel</dc:creator>
      <dc:date>2017-05-10T18:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2018 iLogic error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7075470#M101036</link>
      <description>&lt;P&gt;Please see this other post that is currently on the front page of the forums for your solution:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-fail/td-p/6972701" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/ilogic-fail/td-p/6972701&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 19:35:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7075470#M101036</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2017-05-10T19:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2018 iLogic error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7078858#M101037</link>
      <description>&lt;P&gt;Cheers Mike....That solved the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 00:21:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7078858#M101037</guid>
      <dc:creator>p.robson</dc:creator>
      <dc:date>2017-05-12T00:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2018 iLogic error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7079697#M101038</link>
      <description>&lt;P&gt;I walked through my code line by line and found that the problem code dealt with the PDF options. &amp;nbsp;When I hid the "If" statement and simply kept the rest it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "if" statement I'm referring to is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If oPDFAddIn.HasSaveCopyAsOptions(oDataMedium, oContext, oOptions) Then&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 11:03:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7079697#M101038</guid>
      <dc:creator>dennis.throckmorton.vasteel</dc:creator>
      <dc:date>2017-05-12T11:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2018 iLogic error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7203621#M101039</link>
      <description>&lt;P&gt;This solved my issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had the same problem as described and my code was already like Mike's solution. Commenting the "If [...]" statement&amp;nbsp;(and the "End if" line) made the trick.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Dennis!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 15:43:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7203621#M101039</guid>
      <dc:creator>vmcarbonneau</dc:creator>
      <dc:date>2017-07-04T15:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2018 iLogic error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7364028#M101040</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I use the follwoig code to export pdf and dwg in the same time.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In Inventor 2017 it's working perfect, but in 2018 I recive an error.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can you help me?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is the code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Public Sub Main()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Dim oPath = ThisDoc.Path&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oFileName = ThisDoc.FileName(False) 'without extension&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oDuctName = iProperties.Value("Project", "Description")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oRevNum = iProperties.Value("Project", "Revision Number")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oPDFAddIn = ThisApplication.ApplicationAddIns.ItemById("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Dim oDWGAddIn As TranslatorAddIn&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oDWGAddIn = ThisApplication.ApplicationAddIns.ItemById("{C24E3AC2-122E-11D5-8E91-0010B541CD80}")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oDrafstman = ThisApplication.UserName&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oDocument = ThisApplication.ActiveDocument&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oContext = ThisApplication.TransientObjects.CreateTranslationContext&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oOptions = ThisApplication.TransientObjects.CreateNameValueMap&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oDataMediumPDF = ThisApplication.TransientObjects.CreateDataMedium&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oDataMediumDWG = ThisApplication.TransientObjects.CreateDataMedium&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;'Choose Preselected Folder&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Dim oChoice&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Dim ProjectChoice As New ArrayList&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ProjectChoice.Add("Export")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oFolder = "C:\Users\Cosmin\Desktop\"&amp;amp; ProjectChoice(oChoice) &amp;amp;"\"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Dim Proc As String = "Explorer.exe"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Dim Args As String = ControlChars.Quote &amp;amp; IO.Path.Combine("C:\", oFolder) &amp;amp; ControlChars.Quote&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;'PDF Setup&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If oPDFAddIn.HasSaveCopyAsOptions(oDataMediumPDF, oContext, oOptions) Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;oOptions.Value("All_Color_AS_Black") = 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;oOptions.Value("Remove_Line_Weights") = 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;oOptions.Value("Vector_Resolution") = 1200&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;oOptions.Value("Sheet_Range") = Inventor.PrintRangeEnum.kPrintAllSheets&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;' DWG SETUP - Check whether the translator has 'SaveCopyAs' options&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If oDWGAddIn.HasSaveCopyAsOptions(oDocument, oContext, oOptions) Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Dim strIniFile As String&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;strIniFile = "C:\folder\INVENTOR\iLogic\Save as DWG aparte sheets.ini"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;' Create the name-value that specifies the ini file to use.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;oOptions.Value("Export_Acad_IniFile") = strIniFile&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;'get&amp;nbsp; target folder path&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If Not System.IO.Directory.Exists(oFolder) Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;System.IO.Directory.CreateDirectory(oFolder)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;'Set the destination file name&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Dim fileName As String&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;fileName = ThisDoc.FileName(False) &amp;amp; " - " &amp;amp; iProperties.Value ("Project", "Revision Number")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oDataMediumDWG.FileName = oFolder &amp;amp;&amp;nbsp; fileName &amp;amp; ".dwg"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oDataMediumPDF.FileName = oFolder &amp;amp; fileName &amp;amp; ".pdf"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;'Ask the User if he wants PDF or PDF+DWG&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oQuestion =&amp;nbsp; MessageBox.Show("For PDF select YES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for PDF+DWG select NO", "PDF or PDF/DWG", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;'Publish document.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If oQuestion = vbYes Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; oPDFAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMediumPDF)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Else If oQuestion = vbNo Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;oPDFAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMediumPDF)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;oDWGAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMediumDWG)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Else&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;'MessageBox.Show("Canceled", "We're doing nothing now...")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If oQuestion = vbYes Or oQuestion = vbNo Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;OpenFolder=&amp;nbsp; MessageBox.Show("Would you open the folder?", "PDF EXPORTED", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;'open the folder where the new files are saved&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;If OpenFolder = vbYes Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Process.Start(Proc, Args)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Else&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;'Return&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Else&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;End If&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;And the error is this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.JPG" style="width: 527px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/399145i3918190A41BE82C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.JPG" alt="1.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.JPG" style="width: 525px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/399146i48FAEDBD891178C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.JPG" alt="2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 08:19:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7364028#M101040</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-08T08:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2018 iLogic error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7427889#M101041</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Remove the If and End If from the PDF setup&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;'PDF Setup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'&amp;nbsp; &amp;nbsp; If oPDFAddIn.HasSaveCopyAsOptions(oDataMediumPDF, oContext, oOptions) Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;oOptions.Value("All_Color_AS_Black") = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;oOptions.Value("Remove_Line_Weights") = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;oOptions.Value("Vector_Resolution") = 1200&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;oOptions.Value("Sheet_Range") = Inventor.PrintRangeEnum.kPrintAllSheets&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;'&amp;nbsp; &amp;nbsp;End If&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This will not work in Inventor 2018&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 11:37:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7427889#M101041</guid>
      <dc:creator>Rob67ert</dc:creator>
      <dc:date>2017-10-03T11:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2018 iLogic error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7976599#M101042</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you help me with another problem.&lt;/P&gt;&lt;P&gt;I put the template on the server to be used by my collegues, and they can't do that because of this line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;oFolder = "C:\Users\Cosmin\Desktop\"&amp;amp; ProjectChoice(oChoice) &amp;amp;"\"&lt;/P&gt;&lt;P&gt;Can I change this somehow?&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 08:33:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7976599#M101042</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-03T08:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2018 iLogic error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7977420#M101043</link>
      <description>&lt;P&gt;Well, if you read the code and look at what that line does, and where it points to, you will see 2 things:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. It points to a local path on YOUR computer, so it's obvious that it wouldn't work on a different computer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. It's only used to open up the folder for viewing after export.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's up to you to decide what you want to do with the functionality that is lost by this not working... Do you want to modify it do a generic path that works on all computer?&lt;BR /&gt;Do you just want to remove it?&lt;/P&gt;
&lt;P&gt;etc.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 14:31:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7977420#M101043</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-05-03T14:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2018 iLogic error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7979426#M101044</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;First I want to thank you for the response, I know what the line dose but I don't know how to modify it to let other person to use the macro. I want to chage the line to work for all, because I moved the teamplate folder on the server to have all of us the same teamplate.&lt;/P&gt;&lt;P&gt;If is that posible.&lt;/P&gt;&lt;P&gt;Also can I modify the macro to export the dwg file to autocad 2010, for example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 07:01:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7979426#M101044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-04T07:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2018 iLogic error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7980367#M101045</link>
      <description>&lt;P&gt;Have you tried using backspace/delete and the letter keys on your keyboard? That's usually the way to change file locations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you still want it to be in a folder named by the project, that part of it looks fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So instead, change the "C:\" section to your drive letter....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, to change your ACAD export year, change the .ini file that's used. You'll understand what I'm talking about if you MANUALLY export a dwg and keep your eyes open for the "Save Configuration" option in the dialog box.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 14:15:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/7980367#M101045</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-05-04T14:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor 2018 iLogic error</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/8609666#M101046</link>
      <description>&lt;P&gt;Dennis has the solution!&lt;/P&gt;
&lt;P&gt;Thanks Dennis!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 21:02:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-2018-ilogic-error/m-p/8609666#M101046</guid>
      <dc:creator>lesmfunk</dc:creator>
      <dc:date>2019-02-20T21:02:00Z</dc:date>
    </item>
  </channel>
</rss>

