<?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 Placing components with iMates, multiple positions in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/placing-components-with-imates-multiple-positions/m-p/12298165#M158932</link>
    <description>&lt;P&gt;I'm trying to figure out a way to place components with multiple iMates with iLogic.&lt;/P&gt;&lt;P&gt;Right now i place the torque arm on the gearbox with a simple insert iMate defined within the partfiles using the following code in my assembly;&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;LI-CODE lang="general"&gt;oACD.Occurrences.AddUsingiMates()&lt;/LI-CODE&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;This works fine:&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-1697009382080.png" style="width: 300px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1277720i0A8D5832891757A5/image-size/small?v=v2&amp;amp;px=200" role="button" title="Daan_M_0-1697009382080.png" alt="Daan_M_0-1697009382080.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that the torque arm can also be assembled on the other side of the gearbox:&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_1-1697009838104.png" style="width: 300px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1277724i8D9003FDE6F7A091/image-size/small?v=v2&amp;amp;px=200" role="button" title="Daan_M_1-1697009838104.png" alt="Daan_M_1-1697009838104.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any solution that allows me to define the placement side in iLogic?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example maybe its possible I put 2 iMates in both the torque arm and gearbox parts (Left and Right side), and then i choose which one should be used in iLogic?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2023 09:48:09 GMT</pubDate>
    <dc:creator>Daan_M</dc:creator>
    <dc:date>2023-10-11T09:48:09Z</dc:date>
    <item>
      <title>Placing components with iMates, multiple positions</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/placing-components-with-imates-multiple-positions/m-p/12298165#M158932</link>
      <description>&lt;P&gt;I'm trying to figure out a way to place components with multiple iMates with iLogic.&lt;/P&gt;&lt;P&gt;Right now i place the torque arm on the gearbox with a simple insert iMate defined within the partfiles using the following code in my assembly;&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;LI-CODE lang="general"&gt;oACD.Occurrences.AddUsingiMates()&lt;/LI-CODE&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;This works fine:&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-1697009382080.png" style="width: 300px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1277720i0A8D5832891757A5/image-size/small?v=v2&amp;amp;px=200" role="button" title="Daan_M_0-1697009382080.png" alt="Daan_M_0-1697009382080.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that the torque arm can also be assembled on the other side of the gearbox:&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_1-1697009838104.png" style="width: 300px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1277724i8D9003FDE6F7A091/image-size/small?v=v2&amp;amp;px=200" role="button" title="Daan_M_1-1697009838104.png" alt="Daan_M_1-1697009838104.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any solution that allows me to define the placement side in iLogic?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example maybe its possible I put 2 iMates in both the torque arm and gearbox parts (Left and Right side), and then i choose which one should be used in iLogic?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 09:48:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/placing-components-with-imates-multiple-positions/m-p/12298165#M158932</guid>
      <dc:creator>Daan_M</dc:creator>
      <dc:date>2023-10-11T09:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Placing components with iMates, multiple positions</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/placing-components-with-imates-multiple-positions/m-p/12318375#M159289</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8021187"&gt;@Daan_M&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you look at this &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=iMateResult_Sample" target="_blank" rel="noopener"&gt;vba sample&lt;/A&gt; it will likely have what your looking for. You will need to look through your gearbox occurrence and find and select what definition you want to use. Knowing which index number might be enough for you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 01:17:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/placing-components-with-imates-multiple-positions/m-p/12318375#M159289</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2023-10-20T01:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Placing components with iMates, multiple positions</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/placing-components-with-imates-multiple-positions/m-p/12318794#M159294</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Yes, it's possible. You need to define the type and alignment of the iMate on the gearbox and the torque arm and update those constraints as needed:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;componentA&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"CZ11"&lt;/SPAN&gt;, &lt;SPAN&gt;"Your\Path\CZ11.ipt"&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;AssemblyDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;constrains&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyConstraints&lt;/SPAN&gt;
&lt;SPAN&gt;constrains&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Constraints&lt;/SPAN&gt;

&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;constrain&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;constrains&lt;/SPAN&gt;
	&lt;SPAN&gt;constrain&lt;/SPAN&gt;.&lt;SPAN&gt;Delete&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;

&lt;SPAN&gt;Select&lt;/SPAN&gt; &lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;SIDE&lt;/SPAN&gt;
&lt;SPAN&gt;Case&lt;/SPAN&gt; = &lt;SPAN&gt;"LEFT"&lt;/SPAN&gt;
	&lt;SPAN&gt;Constraints&lt;/SPAN&gt;.&lt;SPAN&gt;AddByiMates&lt;/SPAN&gt;(&lt;SPAN&gt;"Left1"&lt;/SPAN&gt;, &lt;SPAN&gt;"CZ10"&lt;/SPAN&gt;, &lt;SPAN&gt;"W1"&lt;/SPAN&gt;, &lt;SPAN&gt;"CZ11"&lt;/SPAN&gt;, &lt;SPAN&gt;"W1"&lt;/SPAN&gt;)
	&lt;SPAN&gt;Constraints&lt;/SPAN&gt;.&lt;SPAN&gt;AddByiMates&lt;/SPAN&gt;(&lt;SPAN&gt;"Left2"&lt;/SPAN&gt;, &lt;SPAN&gt;"CZ10"&lt;/SPAN&gt;, &lt;SPAN&gt;"W2"&lt;/SPAN&gt;, &lt;SPAN&gt;"CZ11"&lt;/SPAN&gt;, &lt;SPAN&gt;"W2"&lt;/SPAN&gt;)
&lt;SPAN&gt;Case&lt;/SPAN&gt; = &lt;SPAN&gt;"RIGHT"&lt;/SPAN&gt;
	&lt;SPAN&gt;Constraints&lt;/SPAN&gt;.&lt;SPAN&gt;AddByiMates&lt;/SPAN&gt;(&lt;SPAN&gt;"Right1"&lt;/SPAN&gt;, &lt;SPAN&gt;"CZ10"&lt;/SPAN&gt;, &lt;SPAN&gt;"W3"&lt;/SPAN&gt;, &lt;SPAN&gt;"CZ11"&lt;/SPAN&gt;, &lt;SPAN&gt;"W3"&lt;/SPAN&gt;)
	&lt;SPAN&gt;Constraints&lt;/SPAN&gt;.&lt;SPAN&gt;AddByiMates&lt;/SPAN&gt;(&lt;SPAN&gt;"Right2"&lt;/SPAN&gt;, &lt;SPAN&gt;"CZ10"&lt;/SPAN&gt;, &lt;SPAN&gt;"W4"&lt;/SPAN&gt;, &lt;SPAN&gt;"CZ11"&lt;/SPAN&gt;, &lt;SPAN&gt;"W4"&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Select&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="m_baczewski_0-1697784600630.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1281556iC06CA3CD62E2AE81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="m_baczewski_0-1697784600630.png" alt="m_baczewski_0-1697784600630.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="m_baczewski_1-1697784605701.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1281557i4F2218F4354BF5A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="m_baczewski_1-1697784605701.png" alt="m_baczewski_1-1697784605701.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="m_baczewski_2-1697784609372.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1281558iD6638890118F64C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="m_baczewski_2-1697784609372.png" alt="m_baczewski_2-1697784609372.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6339510916112w1266h540r86" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6339510916112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6339510916112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 06:51:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/placing-components-with-imates-multiple-positions/m-p/12318794#M159294</guid>
      <dc:creator>m_baczewski</dc:creator>
      <dc:date>2023-10-20T06:51:01Z</dc:date>
    </item>
  </channel>
</rss>

