<?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 Betreff: iLogic code to show on Forms multiple options within multiple option in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-show-on-forms-multiple-options-within-multiple/m-p/12573850#M13313</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13005435"&gt;@federico.scalaJ3AKH&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can add &lt;STRONG&gt;Thk&lt;/STRONG&gt; to a form and activate/deactivate it using a True/False parameter.&lt;BR /&gt;I created a True/False parameter &lt;STRONG&gt;ThkActivated&lt;/STRONG&gt; and a rule:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN&gt;SetValueOptions&lt;/SPAN&gt;(&lt;SPAN&gt;True&lt;/SPAN&gt;, &lt;SPAN&gt;DefaultIndex&lt;/SPAN&gt; := 0)

&lt;SPAN&gt;Select&lt;/SPAN&gt; &lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;Mat&lt;/SPAN&gt;
	&lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;"A"&lt;/SPAN&gt;
		&lt;SPAN&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN&gt;SetList&lt;/SPAN&gt;(&lt;SPAN&gt;"Thk"&lt;/SPAN&gt;, 10 )
	&lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;"B"&lt;/SPAN&gt;
		&lt;SPAN&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN&gt;SetList&lt;/SPAN&gt;(&lt;SPAN&gt;"Thk"&lt;/SPAN&gt;, 15 )
	&lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;"C"&lt;/SPAN&gt; :
	   &lt;SPAN&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN&gt;SetList&lt;/SPAN&gt;(&lt;SPAN&gt;"Thk"&lt;/SPAN&gt;, 20 )
	&lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;"D"&lt;/SPAN&gt;: 
	   &lt;SPAN&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN&gt;SetList&lt;/SPAN&gt;(&lt;SPAN&gt;"Thk"&lt;/SPAN&gt;, 9, 12, 18)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Select&lt;/SPAN&gt;

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN&gt;List&lt;/SPAN&gt;(&lt;SPAN&gt;"Thk"&lt;/SPAN&gt;).&lt;SPAN&gt;Count&lt;/SPAN&gt; &amp;gt; 1 &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;ThkActivated&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;SPAN&gt;Else&lt;/SPAN&gt;
	&lt;SPAN&gt;ThkActivated&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;In the form added the parameter &lt;STRONG&gt;Mat&lt;/STRONG&gt; and &lt;STRONG&gt;Thk&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;For &lt;STRONG&gt;Thk&lt;/STRONG&gt; I used &lt;STRONG&gt;ThkActivated&lt;/STRONG&gt; as 'Enabling parameter name' (sorry for the german screenshot):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cidhelp_0-1708526444829.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1328741i242AF2324DC8D25E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cidhelp_0-1708526444829.png" alt="cidhelp_0-1708526444829.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now you can change &lt;STRONG&gt;Mat&lt;/STRONG&gt; and &lt;STRONG&gt;Thk&lt;/STRONG&gt; will be active or not:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cidhelp_1-1708526513874.png" style="width: 194px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1328743iC3D348213504E24F/image-dimensions/194x147?v=v2" width="194" height="147" role="button" title="cidhelp_1-1708526513874.png" alt="cidhelp_1-1708526513874.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cidhelp_2-1708526560135.png" style="width: 192px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1328744i4798A8DB4ADA85A6/image-dimensions/192x146?v=v2" width="192" height="146" role="button" title="cidhelp_2-1708526560135.png" alt="cidhelp_2-1708526560135.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2024 15:12:13 GMT</pubDate>
    <dc:creator>cidhelp</dc:creator>
    <dc:date>2024-02-21T15:12:13Z</dc:date>
    <item>
      <title>iLogic code to show on Forms multiple options within multiple option</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-show-on-forms-multiple-options-within-multiple/m-p/12571149#M13311</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;here's my situation:&lt;/P&gt;&lt;P&gt;Parameter "Material" (List): A, B, C or D.&lt;/P&gt;&lt;P&gt;Parameter "Thickness":&lt;/P&gt;&lt;P&gt;Mat A &amp;gt; Thk = 10&lt;/P&gt;&lt;P&gt;B &amp;gt; Thk = 15&lt;/P&gt;&lt;P&gt;C &amp;gt; Thk = 20&lt;/P&gt;&lt;P&gt;D &amp;gt; Thk = 9, 12 or 18&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, in iLogic I have this code for the material selection:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Get the selected option from the user parameter list&lt;/SPAN&gt;
 &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;selectedOption&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;Parameter&lt;/SPAN&gt; (&lt;SPAN&gt;"Mat"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;Every time you pick a Material, a Thk is defined too, except for Material D.&lt;/P&gt;&lt;P&gt;When choosing D (and just in that case), I'd like in FORM to appear a Thk List so you can choose the option you need.&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;Another option would be to have the Thk line all the time in FORM, but when choosing A, B or C, it should show the predefined Thk, just for information and when picking D, the list of options appears.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time and help. Regards&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;</description>
      <pubDate>Tue, 20 Feb 2024 12:37:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-show-on-forms-multiple-options-within-multiple/m-p/12571149#M13311</guid>
      <dc:creator>federico.scalaJ3AKH</dc:creator>
      <dc:date>2024-02-20T12:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic code to show on Forms multiple options within multiple option</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-show-on-forms-multiple-options-within-multiple/m-p/12572681#M13312</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13005435"&gt;@federico.scalaJ3AKH&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit.&lt;/P&gt;&lt;P&gt;See this article &lt;A href="https://www.symetri.co.uk/insights/blog/ilogic-episode-3-multivalue-parameters/" target="_blank" rel="noopener"&gt;here&lt;/A&gt; showing the method specifically for material and thickness value.&lt;/P&gt;&lt;P&gt;Use the set list function shown &lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-8A059F6D-BA53-4AFD-BC2F-8FDA98DCC511" target="_blank" rel="noopener"&gt;here&lt;/A&gt; in this help page&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MultiValue.SetList(“Thickness”, 0.5, 0.75, 1.0, 1.25)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For each material set the multivalue list&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;If Material = "C" Then&lt;BR /&gt;   MultiValue.SetList("Thickness", 20 )&lt;BR /&gt;ElseIf Material = "D" Then&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;   MultiValue.SetList("Thickness", 9,12,18)&lt;BR /&gt;End If&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 05:01:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-show-on-forms-multiple-options-within-multiple/m-p/12572681#M13312</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2024-02-21T05:01:20Z</dc:date>
    </item>
    <item>
      <title>Betreff: iLogic code to show on Forms multiple options within multiple option</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-show-on-forms-multiple-options-within-multiple/m-p/12573850#M13313</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13005435"&gt;@federico.scalaJ3AKH&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can add &lt;STRONG&gt;Thk&lt;/STRONG&gt; to a form and activate/deactivate it using a True/False parameter.&lt;BR /&gt;I created a True/False parameter &lt;STRONG&gt;ThkActivated&lt;/STRONG&gt; and a rule:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN&gt;SetValueOptions&lt;/SPAN&gt;(&lt;SPAN&gt;True&lt;/SPAN&gt;, &lt;SPAN&gt;DefaultIndex&lt;/SPAN&gt; := 0)

&lt;SPAN&gt;Select&lt;/SPAN&gt; &lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;Mat&lt;/SPAN&gt;
	&lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;"A"&lt;/SPAN&gt;
		&lt;SPAN&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN&gt;SetList&lt;/SPAN&gt;(&lt;SPAN&gt;"Thk"&lt;/SPAN&gt;, 10 )
	&lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;"B"&lt;/SPAN&gt;
		&lt;SPAN&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN&gt;SetList&lt;/SPAN&gt;(&lt;SPAN&gt;"Thk"&lt;/SPAN&gt;, 15 )
	&lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;"C"&lt;/SPAN&gt; :
	   &lt;SPAN&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN&gt;SetList&lt;/SPAN&gt;(&lt;SPAN&gt;"Thk"&lt;/SPAN&gt;, 20 )
	&lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;"D"&lt;/SPAN&gt;: 
	   &lt;SPAN&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN&gt;SetList&lt;/SPAN&gt;(&lt;SPAN&gt;"Thk"&lt;/SPAN&gt;, 9, 12, 18)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Select&lt;/SPAN&gt;

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;MultiValue&lt;/SPAN&gt;.&lt;SPAN&gt;List&lt;/SPAN&gt;(&lt;SPAN&gt;"Thk"&lt;/SPAN&gt;).&lt;SPAN&gt;Count&lt;/SPAN&gt; &amp;gt; 1 &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;ThkActivated&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;SPAN&gt;Else&lt;/SPAN&gt;
	&lt;SPAN&gt;ThkActivated&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;In the form added the parameter &lt;STRONG&gt;Mat&lt;/STRONG&gt; and &lt;STRONG&gt;Thk&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;For &lt;STRONG&gt;Thk&lt;/STRONG&gt; I used &lt;STRONG&gt;ThkActivated&lt;/STRONG&gt; as 'Enabling parameter name' (sorry for the german screenshot):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cidhelp_0-1708526444829.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1328741i242AF2324DC8D25E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cidhelp_0-1708526444829.png" alt="cidhelp_0-1708526444829.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now you can change &lt;STRONG&gt;Mat&lt;/STRONG&gt; and &lt;STRONG&gt;Thk&lt;/STRONG&gt; will be active or not:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cidhelp_1-1708526513874.png" style="width: 194px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1328743iC3D348213504E24F/image-dimensions/194x147?v=v2" width="194" height="147" role="button" title="cidhelp_1-1708526513874.png" alt="cidhelp_1-1708526513874.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cidhelp_2-1708526560135.png" style="width: 192px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1328744i4798A8DB4ADA85A6/image-dimensions/192x146?v=v2" width="192" height="146" role="button" title="cidhelp_2-1708526560135.png" alt="cidhelp_2-1708526560135.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 15:12:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-code-to-show-on-forms-multiple-options-within-multiple/m-p/12573850#M13313</guid>
      <dc:creator>cidhelp</dc:creator>
      <dc:date>2024-02-21T15:12:13Z</dc:date>
    </item>
  </channel>
</rss>

