<?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 Assemble with i-mates &amp;amp; i-Logic in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/assemble-with-i-mates-amp-i-logic/m-p/11204140#M138751</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I work as engineer for a company that makes electric motors.&lt;/P&gt;&lt;P&gt;There are alot of combinations possible creating electric motors (flanges, sizes, shafts).&lt;/P&gt;&lt;P&gt;I have recieved all variant parts of these motors as 3D file, instead of manually adding them thogether for every request i want to make an automated Inventor model. I am trying to make a proof of concept for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A motor model always consists of 5 parts;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Front Flange&lt;/P&gt;&lt;P&gt;- Rear shield&lt;BR /&gt;- Body&lt;/P&gt;&lt;P&gt;- Connection box&lt;/P&gt;&lt;P&gt;- Shaft&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought of using i-mates combined with i-logic to add the parts into an assembly, however i can't get it work properly;&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="Daan_M_0-1653985972780.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1073931i1333B0B9C283D47F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daan_M_0-1653985972780.png" alt="Daan_M_0-1653985972780.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For some reason the flange, body &amp;amp; rear shield are placed correctly. But the shaft and connection box aren't.&lt;/P&gt;&lt;P&gt;I triple checked the i-mates on the shaft, which are only 2 mates, i just don't understand why it get's placed incorrectly....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added the files for generating 1 simple motor.&lt;/P&gt;&lt;P&gt;The code i use i pretty plane so far;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oDoc As AssemblyDocument = ThisDoc.Document
Dim oACD As AssemblyComponentDefinition = oDoc.ComponentDefinition

Dim oParts(0 To 4) As String

oParts(0) = "DN71-B"
oParts(1) = "DN71-C"
oParts(2) = "DN71-A-F120"
oParts(3)= "DN71-F"
oParts(4)= "DN71-E"

For Each item In oParts
	
	oACD.Occurrences.AddUsingiMates("C:\Data\Werkmap\animatie\K met ratio\" &amp;amp; item &amp;amp; ".ipt", False)
	InventorVb.DocumentUpdate()
	
	Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance &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;</description>
    <pubDate>Tue, 31 May 2022 08:46:04 GMT</pubDate>
    <dc:creator>Daan_M</dc:creator>
    <dc:date>2022-05-31T08:46:04Z</dc:date>
    <item>
      <title>Assemble with i-mates &amp; i-Logic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/assemble-with-i-mates-amp-i-logic/m-p/11204140#M138751</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I work as engineer for a company that makes electric motors.&lt;/P&gt;&lt;P&gt;There are alot of combinations possible creating electric motors (flanges, sizes, shafts).&lt;/P&gt;&lt;P&gt;I have recieved all variant parts of these motors as 3D file, instead of manually adding them thogether for every request i want to make an automated Inventor model. I am trying to make a proof of concept for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A motor model always consists of 5 parts;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Front Flange&lt;/P&gt;&lt;P&gt;- Rear shield&lt;BR /&gt;- Body&lt;/P&gt;&lt;P&gt;- Connection box&lt;/P&gt;&lt;P&gt;- Shaft&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought of using i-mates combined with i-logic to add the parts into an assembly, however i can't get it work properly;&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="Daan_M_0-1653985972780.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1073931i1333B0B9C283D47F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daan_M_0-1653985972780.png" alt="Daan_M_0-1653985972780.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For some reason the flange, body &amp;amp; rear shield are placed correctly. But the shaft and connection box aren't.&lt;/P&gt;&lt;P&gt;I triple checked the i-mates on the shaft, which are only 2 mates, i just don't understand why it get's placed incorrectly....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added the files for generating 1 simple motor.&lt;/P&gt;&lt;P&gt;The code i use i pretty plane so far;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oDoc As AssemblyDocument = ThisDoc.Document
Dim oACD As AssemblyComponentDefinition = oDoc.ComponentDefinition

Dim oParts(0 To 4) As String

oParts(0) = "DN71-B"
oParts(1) = "DN71-C"
oParts(2) = "DN71-A-F120"
oParts(3)= "DN71-F"
oParts(4)= "DN71-E"

For Each item In oParts
	
	oACD.Occurrences.AddUsingiMates("C:\Data\Werkmap\animatie\K met ratio\" &amp;amp; item &amp;amp; ".ipt", False)
	InventorVb.DocumentUpdate()
	
	Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance &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;</description>
      <pubDate>Tue, 31 May 2022 08:46:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/assemble-with-i-mates-amp-i-logic/m-p/11204140#M138751</guid>
      <dc:creator>Daan_M</dc:creator>
      <dc:date>2022-05-31T08:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Assemble with i-mates &amp; i-Logic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/assemble-with-i-mates-amp-i-logic/m-p/11204207#M138753</link>
      <description>&lt;P&gt;After more than an hour i found out the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using i mates is a good solution, just make sure your origins are matched and pay very close attention to the mate type and direction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doing any of the above wrong will result in an unexpected result/auto-generated mate. This made finding the problem diffecult since you get put on the wrong foot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result simply isn't a direct result of your own actions, but it's the result of Inventor trying to solve the conflicting input you gave it, leading to an unexpected outcome.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 09:40:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/assemble-with-i-mates-amp-i-logic/m-p/11204207#M138753</guid>
      <dc:creator>Daan_M</dc:creator>
      <dc:date>2022-05-31T09:40:47Z</dc:date>
    </item>
  </channel>
</rss>

