<?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: select i parts using i logic in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/select-i-parts-using-i-logic/m-p/10835586#M42088</link>
    <description>&lt;P&gt;have a look at this rule:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt; (&lt;SPAN style="color: #5178c8;"&gt;MyParameter&lt;/SPAN&gt; &amp;lt; 10) &lt;SPAN style="color: #ce5c95;"&gt;Then&lt;/SPAN&gt;
	&lt;SPAN style="color: #9d6bce;"&gt;iPart&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;ChangeRow&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"iComponentName:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"RowMemberName1"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ce5c95;"&gt;Else&lt;/SPAN&gt;
	&lt;SPAN style="color: #9d6bce;"&gt;iPart&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;ChangeRow&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"iComponentName:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"RowMemberName2"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;It uses the parameter "MyParameter" to set an iPart&amp;nbsp; "iComponentName" to the member "RowMemberName1" or "RowMemberName2"&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2021 10:51:17 GMT</pubDate>
    <dc:creator>JelteDeJong</dc:creator>
    <dc:date>2021-12-21T10:51:17Z</dc:date>
    <item>
      <title>select i parts using i logic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/select-i-parts-using-i-logic/m-p/10835520#M42087</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on my first Inventor project and i want to know if its possible to use i logic to select the correct i part member depending on parameters set in a assembly?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If yes does anyone have any examples or guidance i can look at to get a idea how to do this.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 10:07:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/select-i-parts-using-i-logic/m-p/10835520#M42087</guid>
      <dc:creator>simonford026</dc:creator>
      <dc:date>2021-12-21T10:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: select i parts using i logic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/select-i-parts-using-i-logic/m-p/10835586#M42088</link>
      <description>&lt;P&gt;have a look at this rule:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt; (&lt;SPAN style="color: #5178c8;"&gt;MyParameter&lt;/SPAN&gt; &amp;lt; 10) &lt;SPAN style="color: #ce5c95;"&gt;Then&lt;/SPAN&gt;
	&lt;SPAN style="color: #9d6bce;"&gt;iPart&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;ChangeRow&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"iComponentName:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"RowMemberName1"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ce5c95;"&gt;Else&lt;/SPAN&gt;
	&lt;SPAN style="color: #9d6bce;"&gt;iPart&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;ChangeRow&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"iComponentName:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"RowMemberName2"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;It uses the parameter "MyParameter" to set an iPart&amp;nbsp; "iComponentName" to the member "RowMemberName1" or "RowMemberName2"&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 10:51:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/select-i-parts-using-i-logic/m-p/10835586#M42088</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2021-12-21T10:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: select i parts using i logic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/select-i-parts-using-i-logic/m-p/10835708#M42089</link>
      <description>&lt;P&gt;Thank you very much for that example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it might be a little long winded for what i am trying to achieve.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; a part that i need to turn several features on / off depending on the assembly in which it is placed. I could easily end up with 100 variations of this part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have a master part with features being turned on/off that is being driven by the final assembly. If i use a copy design function or place i logic component this will create a new unique instance of that part, is this correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i want to achieve is when the assembly parameters match a existing part it places that existing part instead of creating a new part.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see how this works in your example but i fear this would end up as a very long i logic code prone to error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my idea was to create the i parts and then use i logic to place the correct version in the assembly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 12:45:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/select-i-parts-using-i-logic/m-p/10835708#M42089</guid>
      <dc:creator>simonford026</dc:creator>
      <dc:date>2021-12-21T12:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: select i parts using i logic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/select-i-parts-using-i-logic/m-p/10836134#M42090</link>
      <description>&lt;P&gt;&lt;STRONG&gt;iPart&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you could come up with a naming scheme for your iPart member name that equates to certain conditions you could access that directly with member change logic.&lt;/P&gt;&lt;P&gt;Alternately look into the factory part with parameter as column name and check if matches conditions and place member that matches.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Placing an iLogic component &lt;/STRONG&gt;assembly/part will always create a new modifiable instance and save to a location of choice. What you could do is to modify the filename after creation or *before* and then check if another one is existing in the same folder under that given name.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;* Not sure this is possible to do with post private as Inventor does naming with next index number.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;An alternate might be to check first if the file with your wanted parameters exist in a given folder if not use place ilogic component to open the dialogue for you in order to create one. I am not sure if you can input the parameters at the time of opening the ilogic component by code.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 15:43:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/select-i-parts-using-i-logic/m-p/10836134#M42090</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2021-12-21T15:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: select i parts using i logic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/select-i-parts-using-i-logic/m-p/10836579#M42091</link>
      <description>&lt;P&gt;Is it possible to drive the assembly parameters from the part?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It may work for me if I can chose a i part member that then alters the rest of the assembly to suit.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 19:49:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/select-i-parts-using-i-logic/m-p/10836579#M42091</guid>
      <dc:creator>simonford026</dc:creator>
      <dc:date>2021-12-21T19:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: select i parts using i logic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/select-i-parts-using-i-logic/m-p/10837050#M42092</link>
      <description>&lt;P&gt;There is multiple ways you could do this. If going the ipart route you will need to query the ipart factory table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-4FF5A729-B11F-4993-97EF-AA80C1D0DAA9" target="_blank" rel="noopener"&gt;Here&lt;/A&gt; is the link to the help files. You will need to find the column with your parameter then loop through the rows for your value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ilogic snippet warning:&lt;/P&gt;&lt;P&gt;The ilogic snippets have change member row per parameter. These will change immeditaley however if you have multiple parameters you may find it difficult to change the members. This is why you may need to query the table directly then change member only after you have all your conditions met.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 01:29:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/select-i-parts-using-i-logic/m-p/10837050#M42092</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2021-12-22T01:29:44Z</dc:date>
    </item>
  </channel>
</rss>

