<?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: Compare assemblies with VBA in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/compare-assemblies-with-vba/m-p/9658237#M113797</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;sometime a go i wrote a blog post about comparing 2 parts. Maybe its a start for you. check my post "&lt;A href="https://clintbrown.co.uk/2020/04/14/compare-part-geometry-with-ilogic-guest-post/" target="_blank" rel="noopener"&gt;Compare Part Geometry with iLogic&lt;/A&gt;"&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jul 2020 20:03:14 GMT</pubDate>
    <dc:creator>JelteDeJong</dc:creator>
    <dc:date>2020-07-27T20:03:14Z</dc:date>
    <item>
      <title>Compare assemblies with VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/compare-assemblies-with-vba/m-p/9646104#M113486</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use Inventor + Vault 2018.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to automatically compare 2 assemblies with 2 different versions that are stored in Vault (basically I want to know what has been modified inside "ASMtest.iam" version 6 and 9 by my other colleagues).&lt;BR /&gt;What I manually do today inside Inventor is:&lt;BR /&gt;- get from Vault ASMtest version 6 (I do not open it inside Inventor)&lt;BR /&gt;- open a new part&lt;BR /&gt;- "derive" the ASMtest.iam, option "derive style = single solid body merging out seams between planar faces"&lt;BR /&gt;- break the link&lt;BR /&gt;- get from Vault ASMtest version 9 (I do not open it inside Inventor)&lt;BR /&gt;- "derive" the ASMtest.iam, option "derive style = single solid body merging out seams between planar faces"&lt;BR /&gt;--&amp;gt; at this step I get 2 solids, each represents a version of my ASMtest&lt;/P&gt;&lt;P&gt;And this is what shows me what was removed or added, for each I look which material is still there and I check the body weight/volume:&lt;BR /&gt;- "combine", option "cut", for base I select the 1st body and for toolbody I select the 2nd body&lt;BR /&gt;- "combine", option "cut", for base I select the 2nd body and for toolbody I select the 1st body&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So, if I want to automate this comparison:&lt;BR /&gt;- Is there already an easiest way to do that ?&lt;BR /&gt;- should I do it with macro/VBA (I never used it inside Inventor, but I already use VBA inside Excel, and I found how to derive)&lt;BR /&gt;- should I do it with VB.net (I only know how to get the 2 versions of ASMtest.iam and parts which are inside, but I don't know how to create a new part and derive, combine, ...) --&amp;gt; I fear this will cost me a lot of time&lt;BR /&gt;- (I also can launch a VB.NET software to download the files, and then launch manually a macro to derive and combine, it can be sufficient for me)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be great if you can help me regarding the commands to use &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot !&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 08:17:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/compare-assemblies-with-vba/m-p/9646104#M113486</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-21T08:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Compare assemblies with VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/compare-assemblies-with-vba/m-p/9658237#M113797</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;sometime a go i wrote a blog post about comparing 2 parts. Maybe its a start for you. check my post "&lt;A href="https://clintbrown.co.uk/2020/04/14/compare-part-geometry-with-ilogic-guest-post/" target="_blank" rel="noopener"&gt;Compare Part Geometry with iLogic&lt;/A&gt;"&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 20:03:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/compare-assemblies-with-vba/m-p/9658237#M113797</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2020-07-27T20:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Compare assemblies with VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/compare-assemblies-with-vba/m-p/9659535#M113826</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That sounds very interesting :), thank you!&lt;/P&gt;&lt;P&gt;But when&amp;nbsp; run it for a test (without modifying anything) I get an error "Paramètre incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))".&lt;/P&gt;&lt;P&gt;It appears inside "&lt;SPAN&gt;createDiff", when the following line is run:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;doc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Features&lt;/SPAN&gt;.&lt;SPAN&gt;SplitFeatures&lt;/SPAN&gt;.&lt;SPAN&gt;TrimSolid&lt;/SPAN&gt;(&lt;SPAN&gt;splitTool&lt;/SPAN&gt;, &lt;SPAN&gt;body&lt;/SPAN&gt;, &lt;SPAN&gt;True&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my test I tried to compare 2 solid parts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea of what happens?&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>Tue, 28 Jul 2020 12:44:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/compare-assemblies-with-vba/m-p/9659535#M113826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-28T12:44:26Z</dc:date>
    </item>
  </channel>
</rss>

