<?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 Pack and Go using iLogic in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6612540#M108652</link>
    <description>&lt;P&gt;Hi g.treacy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I looked at this again, and see the same results (I overlooked that it missing the referenced files the first time).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, I can't find any further information on the Pack and Go in the&amp;nbsp;API, so I'm not sure how to resolve it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Oct 2016 15:24:29 GMT</pubDate>
    <dc:creator>Curtis_W</dc:creator>
    <dc:date>2016-10-10T15:24:29Z</dc:date>
    <item>
      <title>Inventor Pack and Go using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6405492#M108648</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;The Pack And Go API sample works fine when run from Visual Studio, but when used in iLogic (with a reference to the Pack and Go DLL at the start of the iLogic rule, it gives the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error HRESULT E_FAIL has been returned from a call to a COM component.&lt;/P&gt;&lt;P&gt;Details:&amp;nbsp;System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.&lt;BR /&gt;at PackAndGoLib.PackAndGoClass.set_ProjectFile(String Result)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is strange, as it is simply refusing to set the active project file for the Pack and Go. I've read&amp;nbsp;xiaodong-liang's helpful blog below - could this be a case of x86 and x64 interop problems? I'm sure this must be simple to solve - I don't really want to have to write my own Pack and Go routine in iLogic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/manufacturing/2013/05/use-packandgo-of-2014-api.html" target="_blank"&gt;http://adndevblog.typepad.com/manufacturing/2013/05/use-packandgo-of-2014-api.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt; &lt;SPAN&gt;AddReference&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;C:\Program Files\Autodesk\Inventor 2017\Bin\Autodesk.PackAndGo.Interop.dll&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt; 
 
 &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPacknGoComp&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;PackAndGoLib&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;PackAndGoComponent&lt;/SPAN&gt;

        &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ActiveEditDocument&lt;/SPAN&gt;

        &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;ensure the first argument of CreatePackAndGo is correct assembly,&lt;/SPAN&gt;
        &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;and the path of the second argument exists&lt;/SPAN&gt;
        &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; otherwise, the method will crash&lt;/SPAN&gt;
        &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPacknGo&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PackAndGoLib&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;PackAndGo&lt;/SPAN&gt;
        &lt;SPAN&gt;oPacknGo&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oPacknGoComp&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;CreatePackAndGo&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ActiveEditDocument&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;C:\Temp\&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;

        &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; set the project file for the export to be the currently active project file&lt;/SPAN&gt;
        &lt;STRONG&gt;' ERRORS ON THIS LINE......&lt;/STRONG&gt;
        &lt;SPAN&gt;oPacknGo&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ProjectFile&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;DesignProjectManager&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ActiveDesignProject&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;

        &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;sRefFiles&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;SPAN&gt; {}
        &lt;/SPAN&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;sMissFiles&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;Object&lt;/SPAN&gt;

        &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;  Set the options&lt;/SPAN&gt;
        &lt;SPAN&gt;oPacknGo&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SkipLibraries&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;True&lt;/SPAN&gt;
        &lt;SPAN&gt;oPacknGo&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SkipStyles&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;True&lt;/SPAN&gt;
        &lt;SPAN&gt;oPacknGo&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SkipTemplates&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;True&lt;/SPAN&gt;
        &lt;SPAN&gt;oPacknGo&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;CollectWorkgroups&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;False&lt;/SPAN&gt;
        &lt;SPAN&gt;oPacknGo&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;KeepFolderHierarchy&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;True&lt;/SPAN&gt;
        &lt;SPAN&gt;oPacknGo&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;IncludeLinkedFiles&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;True&lt;/SPAN&gt;

        &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;  Get the referenced files&lt;/SPAN&gt;
        &lt;SPAN&gt;oPacknGo&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;SearchForReferencedFiles&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sRefFiles&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;sMissFiles&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;

        &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;  Add the referenced files for package&lt;/SPAN&gt;
        &lt;SPAN&gt;oPacknGo&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;AddFilesToPackage&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sRefFiles&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;

        &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; Start the pack and go to create the package&lt;/SPAN&gt;
        &lt;SPAN&gt;oPacknGo&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;CreatePackage&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 09:52:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6405492#M108648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-27T09:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Pack and Go using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6608919#M108649</link>
      <description>&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;did you ever find the answer to this? I have the same problem and cannot find any&amp;nbsp;solution.&amp;nbsp;I commented out the line setting the project file and it works except it does not include parts in the P&amp;amp;G output, presumably because of the missing project file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Gerry&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 18:08:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6608919#M108649</guid>
      <dc:creator>gerry_treacy</dc:creator>
      <dc:date>2016-10-07T18:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Pack and Go using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6609454#M108650</link>
      <description>&lt;P&gt;Hi g.treacy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the project file is not set, it uses the current active project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added a Try / Catch, so that it caught the error and just used the current active project, and then it ran without error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Try
  oPacknGo.ProjectFile = ThisApplication.DesignProjectManager.ActiveDesignProject.FullFileName
Catch
End Try&lt;/PRE&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 22:45:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6609454#M108650</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2016-10-07T22:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Pack and Go using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6610320#M108651</link>
      <description>&lt;P&gt;Thanks for the reply Curtis, I had trapped the error and figured out that it would run and create a pack &amp;amp; go without specifying a project file. However, the&amp;nbsp;package did not include&amp;nbsp;the parts (when I create a manual package with the same setttings it includes the parts). I assume the search function is not finding the files and I guessed&amp;nbsp;this is due to not specifying the project file, but maybe there is some other reason - any ideas or suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to iLogic and just getting to grips with the basics. Is there any way to debug / step through the code?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your help,&lt;/P&gt;&lt;P&gt;Gerry&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2016 21:29:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6610320#M108651</guid>
      <dc:creator>gerry_treacy</dc:creator>
      <dc:date>2016-10-08T21:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Pack and Go using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6612540#M108652</link>
      <description>&lt;P&gt;Hi g.treacy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I looked at this again, and see the same results (I overlooked that it missing the referenced files the first time).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, I can't find any further information on the Pack and Go in the&amp;nbsp;API, so I'm not sure how to resolve it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 15:24:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6612540#M108652</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2016-10-10T15:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Pack and Go using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6633966#M108653</link>
      <description>&lt;P&gt;I created a dll for this but it&amp;nbsp;failed with the same error. The only way I could get it&amp;nbsp;to work was to create a windows forms application and call it from Ilogic. &amp;nbsp;I can now create the Pack and Go and it includes the referenced files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone ever figures out why it fails in iLogic I would love to know what the problem is.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 08:54:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6633966#M108653</guid>
      <dc:creator>gerry_treacy</dc:creator>
      <dc:date>2016-10-20T08:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Pack and Go using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6634023#M108654</link>
      <description>&lt;P&gt;@Anonymous﻿&amp;nbsp;if I may add my thoughts to this thread, I just opened the&amp;nbsp;C:\Program Files\Autodesk\Inventor 2017\Bin\Autodesk.PackAndGo.Interop.dll with a program called ilSpy and it shows the following information:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;' C:\Program Files\Autodesk\Inventor 2017\Bin\Autodesk.PackAndGo.Interop.dll
' Autodesk.PackAndGo.Interop, Version=18.0.0.0, Culture=neutral, PublicKeyToken=d84147f8b4276564

' Global type: &amp;lt;Module&amp;gt;
' Architecture: AnyCPU (64-bit preferred)
' Runtime: .NET 4.0&lt;/PRE&gt;&lt;P&gt;I'm not sure whether that has any bearing on iLogic's ability to call the .dll or not- it may be failing because the type is a Module?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Out of curiosity I opened one of my own external, callable from within iLogic .dlls using the same tool and I see the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;' C:\Program Files\Autodesk\Inventor 2016\Bin\iLogicAdd\iLogicExternalDebug.dll
' iLogicExternalDebug, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

' Global type: &amp;lt;Module&amp;gt;
' Architecture: AnyCPU (64-bit preferred)
' Runtime: .NET 4.0&lt;/PRE&gt;&lt;P&gt;Which of course proves my speculation about the .dll being a Module incorrect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't ever attempted to load a .dll from within iLogic that wasn't located inside the iLogicAdd directory of the Inventor install directory, so maybe that is why the pack&amp;amp;go .dll is failing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Rubber_duck_debugging" target="_self"&gt;Rubber Duck&lt;/A&gt; discovery:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to &lt;A href="http://marker.to/yxVGhT" target="_self"&gt;this page&lt;/A&gt;&amp;nbsp;the&amp;nbsp;following is true:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;You can change this location using the iLogic Configuration command. You can also add references to DLLs in the main Autodesk Inventor Bin folder (for example, C:\Program Files\Autodesk\Inventor [Version]\Bin).

The AddReference statement &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;does not support a full path specification&lt;/STRONG&gt;&lt;/FONT&gt;. You can only specify a filename.&lt;/PRE&gt;&lt;P&gt;So that's why it isn't working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you were to change the path from:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;C:\Program Files\Autodesk\Inventor 2017\Bin\Autodesk.PackAndGo.Interop.dll&lt;/PRE&gt;&lt;P&gt;to:&lt;/P&gt;&lt;PRE&gt;Autodesk.PackAndGo.Interop.dll&lt;/PRE&gt;&lt;P&gt;It should then work, yes?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 09:21:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6634023#M108654</guid>
      <dc:creator>AlexFielder</dc:creator>
      <dc:date>2016-10-20T09:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Pack and Go using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6634045#M108655</link>
      <description>&lt;P&gt;Thanks for the info Alex.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to clarify, I can call my&amp;nbsp;dll from iLogic and it runs fine except an error occurs when it tries to set the Project File - the same error occurs in iLogic. In both cases if I omit the line to set the Project File it uses the default one (which is ok) but the Pack and Go that it generates only includes the assembly file, not the referenced parts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my windows form I can set the Project File, it does not throw any error, and the Pack and Go includes the referenced files.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 09:31:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6634045#M108655</guid>
      <dc:creator>gerry_treacy</dc:creator>
      <dc:date>2016-10-20T09:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Pack and Go using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6634078#M108656</link>
      <description>&lt;P&gt;You are welcome&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1240432"&gt;@gerry_treacy﻿&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would revisit&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_W﻿&lt;/a&gt;'s suggestion to trap the Project File change in a try, catch:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Try
  oPacknGo.ProjectFile = ThisApplication.DesignProjectManager.ActiveDesignProject.FullFileName
Catch
End Try&lt;/PRE&gt;&lt;P&gt;Of course, you have to remember that you can't have any files open if you attempt to change the active project inside Inventor manually; I would assume the same is true for when you are using both iLogic and the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I noticed your earlier question about debugging iLogic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simply put, the answer is no. (Not without adding umpteen messageboxes all over the place.) You can of course have iLogic update the Inventor Statusbar with something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sub updatestatusbar(ByVal message As String)
	ThisApplication.statusbartext = message
End Sub

Sub updatestatusbar(ByVal percent As Double, ByVal message As String)
	ThisApplication.statusbartext = message + " (" &amp;amp; percent.tostring("P1") + ")"
End Sub

'called in code with something like:

updatestatusbar(percent,"Exporting: " &amp;amp; System.IO.Path.GetFileNameWithoutExtension(dwgdoc.fulldocumentname) &amp;amp; ".dwg")

'or:

updatestatusbar("This is the message you want to appear on the statusbar")&lt;/PRE&gt;&lt;P&gt;Your only other alternative (if you still wish to debug iLogic) is to have an iTrigger event that runs a rule similar to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'this reference file is built with Visual Studio and inside the .vbproj file it "builds"
'to the iLogicAdd directory for whatever Inventor version you are running
AddReference "IlogicExternalDebug.dll"
    Imports iLogicExternalDebug
Imports Inventor
Sub Main()
    Dim xtClass As New iLogicExternalDebug.ExtClass()
    xtClass.ThisApplication = ThisApplication
    xtClass.DocToUpdate = ThisDoc
    Call xtClass.Update()
End Sub&lt;/PRE&gt;&lt;P&gt;The annoying thing with the above approach is that unlike when you build an add-in and publish it to the&amp;nbsp;&lt;EM&gt;%appdata%\Autodesk\ApplicationPlugins\$(TargetName)\&amp;nbsp;&lt;/EM&gt;folder (whereupon any supported Inventor version would happily load your addin from) you would need to have a post-build event that copies all the relevant files to the iLogicAdd folder for every Inventor install.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 09:52:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6634078#M108656</guid>
      <dc:creator>AlexFielder</dc:creator>
      <dc:date>2016-10-20T09:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Pack and Go using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6634103#M108657</link>
      <description>&lt;P&gt;Thanks again, still getting up to speed with iLogic and all advice&amp;nbsp;welcome. I did use the try/catch and I will try out your debugging tips.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What you said about&amp;nbsp;setting the Project File makes sense to me now - the assembly is open so if it cannot be changed manually then it probably cannot be changed in code either. Seems obvious now, should have realised&amp;nbsp;that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still don't understand why it does not include the referenced files though. The code works in my&amp;nbsp;windows form but not&amp;nbsp;in iLogic and i don't understand why it would be different.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 10:12:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6634103#M108657</guid>
      <dc:creator>gerry_treacy</dc:creator>
      <dc:date>2016-10-20T10:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Pack and Go using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6643494#M108658</link>
      <description>&lt;P&gt;I have another question related to this code and I hope you can help me. The section 'referenced files' searches and adds the parts to the package but this does not include drawings. I believe the command to add referencing drawing files is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;oPacknGo.SearchForReferencingFiles(SearchedFiles:= , ReferencingFiles:= , SearchProjectLocations:=True, FolderPath:="", IncludeSubfolders:=True)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I cannot find any help on this and I'm having trouble figuring it out. Any guidance or examples would be very much appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 09:07:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6643494#M108658</guid>
      <dc:creator>gerry_treacy</dc:creator>
      <dc:date>2016-10-25T09:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Pack and Go using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6827746#M108659</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1240432"&gt;@gerry_treacy&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I have another question related to this code and I hope you can help me. The section 'referenced files' searches and adds the parts to the package but this does not include drawings. I believe the command to add referencing drawing files is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;oPacknGo.SearchForReferencingFiles(SearchedFiles:= , ReferencingFiles:= , SearchProjectLocations:=True, FolderPath:="", IncludeSubfolders:=True)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However I cannot find any help on this and I'm having trouble figuring it out. Any guidance or examples would be very much appreciated.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you find any help on this matter? I need it too!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 16:46:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6827746#M108659</guid>
      <dc:creator>Jef_E</dc:creator>
      <dc:date>2017-01-24T16:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Pack and Go using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6827822#M108660</link>
      <description>&lt;P&gt;No, I never found anything further on how to get the ReferencingFile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I got a working solution by using the drawing instead of the assembly file for ReferencedFile - then all files including drawings were included in the Pack &amp;amp; Go. Give this a try.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 17:00:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6827822#M108660</guid>
      <dc:creator>gerry_treacy</dc:creator>
      <dc:date>2017-01-24T17:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Pack and Go using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6833583#M108661</link>
      <description>&lt;P&gt;Hiya&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1240432"&gt;@gerry_treacy&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3139519"&gt;@Jef_E&lt;/a&gt;&amp;nbsp;(I just saw your new post &lt;A href="https://forums.autodesk.com/t5/inventor-customization/packandgo-searchforreferencingfiles-error/td-p/6829397" target="_self"&gt;here&lt;/A&gt;!),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just had a look in the usual places (With &lt;A href="http://bfy.tw/9iIe" target="_self"&gt;this&lt;/A&gt; Google Search) and came up empty. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I did retrieve the following after using &lt;A href="https://github.com/EWSoftware/SHFB" target="_self"&gt;Sandcastle&lt;/A&gt; on the Autodesk.PackAndGo.Interop.dll -&amp;nbsp;&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="2017-01-26 16_44_38-A Sandcastle Documented Class Library.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/315838iE84274A9E18522F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-01-26 16_44_38-A Sandcastle Documented Class Library.png" alt="2017-01-26 16_44_38-A Sandcastle Documented Class Library.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which seems to confirm your earlier assumption about the syntax it requires.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see from the above though, the file doesn't appear to contain any notation/xml comments to explain this command further.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards and Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: Linked to github home of Sandcastle instead of codeplex&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 16:55:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6833583#M108661</guid>
      <dc:creator>AlexFielder</dc:creator>
      <dc:date>2017-01-26T16:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Pack and Go using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6839508#M108662</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/88414"&gt;@AlexFielder&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does this mean? I don't quite understand what you are trying to say here. It doesn't work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be cool if&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/116141"&gt;@ekinsb&lt;/a&gt;&amp;nbsp;or some other autodesk wizard could share some insight.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 07:34:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6839508#M108662</guid>
      <dc:creator>Jef_E</dc:creator>
      <dc:date>2017-01-30T07:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Pack and Go using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6839879#M108663</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3139519"&gt;@Jef_E&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My last reply was related to &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1240432"&gt;@gerry_treacy&lt;/a&gt;'s earlier question about documentation for the SearchForReferencingFiles() command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As it is present within the API it should work; there just isn't any documentation available on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 11:13:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/6839879#M108663</guid>
      <dc:creator>AlexFielder</dc:creator>
      <dc:date>2017-01-30T11:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Pack and Go using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/10567559#M108664</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1240432"&gt;@gerry_treacy&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I have another question related to this code and I hope you can help me. The section 'referenced files' searches and adds the parts to the package but this does not include drawings. I believe the command to add referencing drawing files is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;oPacknGo.SearchForReferencingFiles(SearchedFiles:= , ReferencingFiles:= , SearchProjectLocations:=True, FolderPath:="", IncludeSubfolders:=True)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I cannot find any help on this and I'm having trouble figuring it out. Any guidance or examples would be very much appreciated.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This works for me:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;                string[] referencedFiles = new string[] { };
                packAndGo.SearchForReferencedFiles(out referencedFiles, out _);

                string[] referencingFiles = new string[] { };
                packAndGo.SearchForReferencingFiles(referencedFiles, out referencingFiles, true);

                int combinedSize = referencedFiles.Length + referencingFiles.Length;

                string[] combinedFiles = new string[combinedSize];
                System.Array.Copy(referencedFiles, combinedFiles, referencedFiles.Length);
                System.Array.Copy(referencingFiles, 0, combinedFiles, 
                    referencedFiles.Length, referencingFiles.Length);

                packAndGo.AddFilesToPackage(combinedFiles);&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 23 Aug 2021 21:34:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/10567559#M108664</guid>
      <dc:creator>SometimesInventorMakesMeAngry</dc:creator>
      <dc:date>2021-08-23T21:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Pack and Go using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/10976786#M108665</link>
      <description>&lt;P&gt;Old post but in case someone stumbles this way it is possible to step through ilogic code with visual studio. Just put a "break" statement in your ilogic and with any vb project open in visual studio go "Debug &amp;gt; Attach to process" and run your ilogic. Bit of a faff but worth the effort sometimes.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 09:21:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/10976786#M108665</guid>
      <dc:creator>prussellZXB3F</dc:creator>
      <dc:date>2022-03-01T09:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Pack and Go using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/11281891#M108666</link>
      <description>&lt;P&gt;Oh I never thought to do this! Works great, gonna make debugging ilogic so much easier. Thanks! Now if only there was a way to edit ilogic code in VS that would be brilliant.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 02:12:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-pack-and-go-using-ilogic/m-p/11281891#M108666</guid>
      <dc:creator>scatterlogical</dc:creator>
      <dc:date>2022-07-07T02:12:43Z</dc:date>
    </item>
  </channel>
</rss>

