<?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 Rule for dynamic multi value list in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/rule-for-dynamic-multi-value-list/m-p/10575629#M128148</link>
    <description>&lt;P&gt;Hello I have a problem and I would appreciate any help you can give. The first image shows a dynamic multi value list with TYPE and SIZE as a text parameter. I'm trying to figure out how to disable all the unwanted radio groups when I have chosen the one I want to use.&lt;BR /&gt;The second image shows what I'm trying to achieve.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Thu, 26 Aug 2021 13:43:11 GMT</pubDate>
    <dc:creator>SpokenEarth</dc:creator>
    <dc:date>2021-08-26T13:43:11Z</dc:date>
    <item>
      <title>Rule for dynamic multi value list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/rule-for-dynamic-multi-value-list/m-p/10575629#M128148</link>
      <description>&lt;P&gt;Hello I have a problem and I would appreciate any help you can give. The first image shows a dynamic multi value list with TYPE and SIZE as a text parameter. I'm trying to figure out how to disable all the unwanted radio groups when I have chosen the one I want to use.&lt;BR /&gt;The second image shows what I'm trying to achieve.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 13:43:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/rule-for-dynamic-multi-value-list/m-p/10575629#M128148</guid>
      <dc:creator>SpokenEarth</dc:creator>
      <dc:date>2021-08-26T13:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rule for dynamic multi value list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/rule-for-dynamic-multi-value-list/m-p/10575762#M128150</link>
      <description>&lt;P&gt;Have you read through &lt;A href="https://inventortrenches.blogspot.com/2017/02/ilogic-dynamic-multivalue-parameter.html" target="_blank" rel="noopener"&gt;this other post&lt;/A&gt; yet?&amp;nbsp; It is dealing with a very similar task, but using the radio groups instead of the drop-down lists.&amp;nbsp; It looks like your iLogic Form is a 'local' one, so it should be able to instantly react to parameter selections, as long as you have the iLogic rules set-up do handle the parameter value change events.&amp;nbsp; Which version of Inventor are you using (year)?&amp;nbsp; Are all the filter type changes happening OK for you when you make selections?&amp;nbsp; If so, then are you simply trying to change the layout, and not the functionality?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 14:15:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/rule-for-dynamic-multi-value-list/m-p/10575762#M128150</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-08-26T14:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Rule for dynamic multi value list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/rule-for-dynamic-multi-value-list/m-p/10575782#M128151</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;'['SET TYPE MULTI TEXT&lt;/SPAN&gt;

&lt;SPAN&gt;iLogicVb&lt;/SPAN&gt;.&lt;SPAN&gt;UpdateWhenDone&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;

  
&lt;SPAN&gt;'check For Parameter and create If Not found&lt;/SPAN&gt;
&lt;SPAN&gt;Try&lt;/SPAN&gt;
&lt;SPAN&gt;'get parameter value (just to see if it exists)&lt;/SPAN&gt;
&lt;SPAN&gt;oTest&lt;/SPAN&gt; = &lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"TYPE"&lt;/SPAN&gt;) 
&lt;SPAN&gt;Catch&lt;/SPAN&gt;
&lt;SPAN&gt;' Get the active document.  Assumes a part document is active.&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;partDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartDocument&lt;/SPAN&gt;
&lt;SPAN&gt;partDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN&gt;' Get the UserParameters collection&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;userParams&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;UserParameters&lt;/SPAN&gt;
&lt;SPAN&gt;userParams&lt;/SPAN&gt; = &lt;SPAN&gt;partDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Parameters&lt;/SPAN&gt;.&lt;SPAN&gt;UserParameters&lt;/SPAN&gt;
	
&lt;SPAN&gt;'create the parameter&lt;/SPAN&gt;
&lt;SPAN&gt;oParam&lt;/SPAN&gt; = &lt;SPAN&gt;userParams&lt;/SPAN&gt;.&lt;SPAN&gt;AddByValue&lt;/SPAN&gt;(&lt;SPAN&gt;"TYPE"&lt;/SPAN&gt;,&lt;SPAN&gt;"DIN 32676 SERIES 1"&lt;/SPAN&gt;, &lt;SPAN&gt;UnitsTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kTextUnits&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;

&lt;SPAN&gt;'Set the list&lt;/SPAN&gt;
&lt;SPAN&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN&gt;SetList&lt;/SPAN&gt;(&lt;SPAN&gt;"TYPE"&lt;/SPAN&gt;,&lt;SPAN&gt;"DIN 32676 SERIES 1"&lt;/SPAN&gt;,&lt;SPAN&gt;"DIN 32676 SERIES 2 STANDARD"&lt;/SPAN&gt;, 
&lt;SPAN&gt;"DIN 32676 SERIES 2 NON STANDARD"&lt;/SPAN&gt;, &lt;SPAN&gt;"DIN 32676 SERIES 3"&lt;/SPAN&gt;, &lt;SPAN&gt;"ISO 2037 SERIES 1"&lt;/SPAN&gt;, &lt;SPAN&gt;"ISO 2037 SERIES 2"&lt;/SPAN&gt;,
&lt;SPAN&gt;"ISO 1127 SERIES 1"&lt;/SPAN&gt;, &lt;SPAN&gt;"ISO 1127 VARIATIONS"&lt;/SPAN&gt;,&lt;SPAN&gt;"DIN 11850"&lt;/SPAN&gt;,&lt;SPAN&gt;"ASME BPE"&lt;/SPAN&gt;, &lt;SPAN&gt;"BS 4825-3"&lt;/SPAN&gt;, &lt;SPAN&gt;"BS SCHEDULE 5"&lt;/SPAN&gt;, &lt;SPAN&gt;"BS SCHEDULE 10"&lt;/SPAN&gt;, 
&lt;SPAN&gt;"BS SCHEDULE 40"&lt;/SPAN&gt;,&lt;SPAN&gt;"MINI SERIES ULTRA BORE IMPERIAL"&lt;/SPAN&gt;,&lt;SPAN&gt;"MINI SERIES ULTRA BORE METRIC"&lt;/SPAN&gt;,&lt;SPAN&gt;"14 MPW TANK"&lt;/SPAN&gt;,&lt;SPAN&gt;"SWG"&lt;/SPAN&gt;)

&lt;SPAN&gt;'set default value&lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"TYPE"&lt;/SPAN&gt;) = &lt;SPAN&gt;"DIN 32676 SERIES 1"&lt;/SPAN&gt;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Aug 2021 14:21:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/rule-for-dynamic-multi-value-list/m-p/10575782#M128151</guid>
      <dc:creator>SpokenEarth</dc:creator>
      <dc:date>2021-08-26T14:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rule for dynamic multi value list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/rule-for-dynamic-multi-value-list/m-p/10575785#M128152</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;'['DIN 32676 SERIES 1 SET LIST AND DEFAULT&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;TYPE&lt;/SPAN&gt; = &lt;SPAN&gt;"DIN 32676 SERIES 1"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;	
&lt;SPAN&gt;'SET LIST&lt;/SPAN&gt;
&lt;SPAN&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN&gt;SetList&lt;/SPAN&gt;(&lt;SPAN&gt;"SIZE"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN10"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN15"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN20"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN25"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN32"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN40"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN50"&lt;/SPAN&gt;)
&lt;SPAN&gt;'SET DEFAULT LIST&lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"SIZE"&lt;/SPAN&gt;) = &lt;SPAN&gt;"DN10"&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;']&lt;/SPAN&gt;

&lt;SPAN&gt;'['DIN 32676 SERIES 2 STANDARD SET LIST AND DEFAULT&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;TYPE&lt;/SPAN&gt; = &lt;SPAN&gt;"DIN 32676 SERIES 2 STANDARD"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;	
&lt;SPAN&gt;'SET LIST&lt;/SPAN&gt;
&lt;SPAN&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN&gt;SetList&lt;/SPAN&gt;(&lt;SPAN&gt;"SIZE"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN10"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN15"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN20"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN25"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN32"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN40"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN50"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN65"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN80"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN100"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN125"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN150"&lt;/SPAN&gt;,&lt;SPAN&gt;"DN200"&lt;/SPAN&gt;)
&lt;SPAN&gt;'SET DEFAULT LIST&lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"SIZE"&lt;/SPAN&gt;) = &lt;SPAN&gt;"DN10"&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;']&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Aug 2021 14:21:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/rule-for-dynamic-multi-value-list/m-p/10575785#M128152</guid>
      <dc:creator>SpokenEarth</dc:creator>
      <dc:date>2021-08-26T14:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Rule for dynamic multi value list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/rule-for-dynamic-multi-value-list/m-p/10575787#M128153</link>
      <description>&lt;P&gt;Im running 2021,&amp;nbsp;&lt;SPAN&gt;value change events it doesn't&amp;nbsp;trigger&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 14:23:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/rule-for-dynamic-multi-value-list/m-p/10575787#M128153</guid>
      <dc:creator>SpokenEarth</dc:creator>
      <dc:date>2021-08-26T14:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Rule for dynamic multi value list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/rule-for-dynamic-multi-value-list/m-p/10576076#M128162</link>
      <description>&lt;P&gt;OK. I'm seeing a total of two parameters involved in the two rules you posted above. The same two that appear to be used in the Form in the first image you posted. But in the second image of a Form you posted, it is showing what looks like 4 drop-down lists and one radio group, which it seems to me would be representing 5 different multi-value parameters. After reviewing your two rules, I assume at least the one labeled "Din 32676 Series 1 Set List And Default" is a local rule, because it seems to be accessing the paramater named "Type" directly by name without quotes. That one should automatically be fired to run whenever the value of Type changes. The other rule won't automatically fire for any reason, unless you have added it to the Event Triggers dialog under one of its listed events, because it doesn't contain any direct (unquoted) parameter names. Also, even though Type has a long list of possible values, your second rule is only checking for a couple of its possible values. So even if you did run that second rule, it would only do something if Type was currently set to one of those two values. Then Type is one of those two values, it looks like it is changing the list of values for the parameter named "SIZE", then setting its value. So if you were using the form in that first image, and these were the only two rules involved, I would think that when you changed the value of Type in the Form, it would cause the second rule to run, then if the new value of Type was one of those two values, it would update the list of available values under SIZE. Are the names of both parameters in the rules correct and is capitalization correct?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 16:01:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/rule-for-dynamic-multi-value-list/m-p/10576076#M128162</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-08-26T16:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rule for dynamic multi value list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/rule-for-dynamic-multi-value-list/m-p/10576576#M128170</link>
      <description>&lt;P&gt;I check all parameters in the rules and their names are matching.&lt;/P&gt;&lt;P&gt;When&amp;nbsp; I'm fire from the radio group nothing happens.&lt;/P&gt;&lt;P&gt;I need to rethink it&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 19:24:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/rule-for-dynamic-multi-value-list/m-p/10576576#M128170</guid>
      <dc:creator>SpokenEarth</dc:creator>
      <dc:date>2021-08-26T19:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rule for dynamic multi value list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/rule-for-dynamic-multi-value-list/m-p/10578809#M128196</link>
      <description>&lt;P&gt;I created a sample part file to test with, copied your two rules into two new local rule in that document, then ran the one rule to create the TYPE parameter, and its values.&amp;nbsp; Then I manually created the SIZE parameter, then ran the second rule to give it the multiple values.&amp;nbsp; I then created a new local iLogic Form, similar to what you had in your first image.&amp;nbsp; On that finished Form, when I switched between those first to values of TYPE (which are being checked for by the second rule), it changed the available values within the SIZE group.&amp;nbsp; That seems to me like the way it should be, unless I'm just not understanding.&amp;nbsp; I switched between showing the SIZE group as a radio group, and a combo box, bit it continued to function properly both ways.&amp;nbsp; When SIZE was displayed as a drop-down list (combo box) I would just have to click the drop-down to see what values were available, but it still worked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can't really change the design or layout of an iLogic Form in any way from an iLogic rule.&amp;nbsp; All you can do with an iLogic Form from an iLogic rule is show the Form, and get feedback (FormReturnValue) which indicates how the form was closed.&amp;nbsp; And if the form was closed using a rule button, it can return which rule it was associated with.&amp;nbsp; If you need to change how the form looks or functions, you will need to do that within the iLogic Form Editor dialog.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using Inventor 2021.2.2, which it seems is a little newer than yours, so maybe I am unable to reproduce the same errors or lack of functionality as you.&amp;nbsp; I'm not sure.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 14:09:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/rule-for-dynamic-multi-value-list/m-p/10578809#M128196</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-08-27T14:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rule for dynamic multi value list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/rule-for-dynamic-multi-value-list/m-p/10578981#M128199</link>
      <description>&lt;P&gt;Thanks you for your feedback and your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 15:02:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/rule-for-dynamic-multi-value-list/m-p/10578981#M128199</guid>
      <dc:creator>SpokenEarth</dc:creator>
      <dc:date>2021-08-27T15:02:47Z</dc:date>
    </item>
  </channel>
</rss>

