<?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 Connecting parts with imates by selecting the parts that i want to connect while using ilogic in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/connecting-parts-with-imates-by-selecting-the-parts-that-i-want/m-p/12959085#M170723</link>
    <description>&lt;P&gt;I want to use ilogic to select two parts or subassemblies in a top level assembly and have the imates that i have entered in each automatically connect. I am new to ilogic and i am not sure this can be done&lt;/P&gt;</description>
    <pubDate>Wed, 14 Aug 2024 19:02:29 GMT</pubDate>
    <dc:creator>X2RESTON</dc:creator>
    <dc:date>2024-08-14T19:02:29Z</dc:date>
    <item>
      <title>Connecting parts with imates by selecting the parts that i want to connect while using ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/connecting-parts-with-imates-by-selecting-the-parts-that-i-want/m-p/12959085#M170723</link>
      <description>&lt;P&gt;I want to use ilogic to select two parts or subassemblies in a top level assembly and have the imates that i have entered in each automatically connect. I am new to ilogic and i am not sure this can be done&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 19:02:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/connecting-parts-with-imates-by-selecting-the-parts-that-i-want/m-p/12959085#M170723</guid>
      <dc:creator>X2RESTON</dc:creator>
      <dc:date>2024-08-14T19:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting parts with imates by selecting the parts that i want to connect while using ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/connecting-parts-with-imates-by-selecting-the-parts-that-i-want/m-p/12959376#M170737</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14716212"&gt;@X2RESTON&lt;/a&gt;,&amp;nbsp;here is a quick example, where both selected components have an iMate named "iMate2"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;oSet&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;.&lt;SPAN&gt;CreateHighlightSet&lt;/SPAN&gt;

&lt;SPAN&gt;oMsg&lt;/SPAN&gt; = &lt;SPAN&gt;"Select 1st (press ESC to continue)"&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOcc1&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;Pick&lt;/SPAN&gt; _
	(&lt;SPAN&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kAssemblyLeafOccurrenceFilter&lt;/SPAN&gt;, &lt;SPAN&gt;oMsg&lt;/SPAN&gt;)

&lt;SPAN&gt;' If nothing gets selected then exit&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;IsNothing&lt;/SPAN&gt;(&lt;SPAN&gt;oOcc1&lt;/SPAN&gt;) &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;
&lt;SPAN&gt;oSet&lt;/SPAN&gt;.&lt;SPAN&gt;AddItem&lt;/SPAN&gt;(&lt;SPAN&gt;oOcc1&lt;/SPAN&gt;)

&lt;SPAN&gt;oMsg&lt;/SPAN&gt; = &lt;SPAN&gt;"Select 2nd part (press ESC to continue)"&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOcc2&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;Pick&lt;/SPAN&gt; _
	(&lt;SPAN&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kAssemblyLeafOccurrenceFilter&lt;/SPAN&gt;, &lt;SPAN&gt;oMsg&lt;/SPAN&gt;)

&lt;SPAN&gt;' If nothing gets selected then exit&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;IsNothing&lt;/SPAN&gt;(&lt;SPAN&gt;oOcc2&lt;/SPAN&gt;) &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;
&lt;SPAN&gt;oSet&lt;/SPAN&gt;.&lt;SPAN&gt;AddItem&lt;/SPAN&gt;(&lt;SPAN&gt;oOcc2&lt;/SPAN&gt;)

&lt;SPAN&gt;Constraints&lt;/SPAN&gt;.&lt;SPAN&gt;AddByiMates&lt;/SPAN&gt;(&lt;SPAN&gt;""&lt;/SPAN&gt;, &lt;SPAN&gt;oOcc1&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;,&lt;SPAN&gt;"iMate2"&lt;/SPAN&gt;, &lt;SPAN&gt;oOcc2&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;, &lt;SPAN&gt;"iMate2"&lt;/SPAN&gt;)

&lt;SPAN&gt;oSet&lt;/SPAN&gt;.&lt;SPAN&gt;Clear&lt;/SPAN&gt;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 21:16:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/connecting-parts-with-imates-by-selecting-the-parts-that-i-want/m-p/12959376#M170737</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2024-08-14T21:16:39Z</dc:date>
    </item>
  </channel>
</rss>

