<?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 values{2} List - Custom Parameter Question in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/values-2-List-Custom-Parameter-Question/m-p/576496#M5884</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a values{2} list. The list entries are standard lengths of timber. I would like the last entry as Custom, to enable the user to enter a value for variable Timb_L i.e.,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;values{2} "Timb_L",&amp;nbsp; 0, ` Length A:`,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1, `Length B:`,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2, ` Custom:`&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My hope was to use “” as the result for the user selecting #2 i.e.,&lt;/P&gt;
&lt;P&gt;IF Timb_L = 0&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN Timb_L = 1000&lt;/P&gt;
&lt;P&gt;IF Timb_L = 1&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN Timb_L = 1050&lt;/P&gt;
&lt;P&gt;IF Timb_L = 2&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN Timb_L = “”&lt;/P&gt;
&lt;P&gt;PARAMETER&amp;nbsp;&amp;nbsp;&amp;nbsp; Timb_L = Timb_L&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However when I add this “” part of the code into a larger script, the UI keeps blanking out as soon as item 2 is selected. Is there a way to provide an IF THEN which allows the user to manually enter a value using values{2}?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tried:&lt;/P&gt;
&lt;P&gt;IF Timb_L = 2&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN Timb_L = Timb_L&lt;/P&gt;
&lt;P&gt;PARAMETER&amp;nbsp;&amp;nbsp;&amp;nbsp; Timb_L = Timb_L&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I tried not even having a value for 2:&lt;/P&gt;
&lt;P&gt;IF Timb_L = 0&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN Timb_L = 1000&lt;/P&gt;
&lt;P&gt;IF Timb_L = 1&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN Timb_L = 1050&lt;/P&gt;
&lt;P&gt;PARAMETER&amp;nbsp;&amp;nbsp;&amp;nbsp; Timb_L = Timb_L&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks, Matt&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2024 11:45:41 GMT</pubDate>
    <dc:creator>GDL Enthusiast</dc:creator>
    <dc:date>2024-09-26T11:45:41Z</dc:date>
    <item>
      <title>values{2} List - Custom Parameter Question</title>
      <link>https://community.graphisoft.com/t5/GDL/values-2-List-Custom-Parameter-Question/m-p/576496#M5884</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a values{2} list. The list entries are standard lengths of timber. I would like the last entry as Custom, to enable the user to enter a value for variable Timb_L i.e.,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;values{2} "Timb_L",&amp;nbsp; 0, ` Length A:`,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1, `Length B:`,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2, ` Custom:`&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My hope was to use “” as the result for the user selecting #2 i.e.,&lt;/P&gt;
&lt;P&gt;IF Timb_L = 0&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN Timb_L = 1000&lt;/P&gt;
&lt;P&gt;IF Timb_L = 1&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN Timb_L = 1050&lt;/P&gt;
&lt;P&gt;IF Timb_L = 2&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN Timb_L = “”&lt;/P&gt;
&lt;P&gt;PARAMETER&amp;nbsp;&amp;nbsp;&amp;nbsp; Timb_L = Timb_L&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However when I add this “” part of the code into a larger script, the UI keeps blanking out as soon as item 2 is selected. Is there a way to provide an IF THEN which allows the user to manually enter a value using values{2}?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tried:&lt;/P&gt;
&lt;P&gt;IF Timb_L = 2&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN Timb_L = Timb_L&lt;/P&gt;
&lt;P&gt;PARAMETER&amp;nbsp;&amp;nbsp;&amp;nbsp; Timb_L = Timb_L&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I tried not even having a value for 2:&lt;/P&gt;
&lt;P&gt;IF Timb_L = 0&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN Timb_L = 1000&lt;/P&gt;
&lt;P&gt;IF Timb_L = 1&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN Timb_L = 1050&lt;/P&gt;
&lt;P&gt;PARAMETER&amp;nbsp;&amp;nbsp;&amp;nbsp; Timb_L = Timb_L&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks, Matt&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 11:45:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/values-2-List-Custom-Parameter-Question/m-p/576496#M5884</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2024-09-26T11:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: values{2} List - Custom Parameter Question</title>
      <link>https://community.graphisoft.com/t5/GDL/values-2-List-Custom-Parameter-Question/m-p/576504#M5885</link>
      <description>&lt;P&gt;You need two parameters TL1 &amp;amp; TL2.&lt;/P&gt;
&lt;P&gt;TL1 contains your option values.&lt;/P&gt;
&lt;P&gt;Your object uses the value in TL2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If TL1 &amp;nbsp;= 0 then TL2 = 1000 and lock or hide TL2&lt;/P&gt;
&lt;P&gt;If TL1 &amp;nbsp;= 1 then TL2 = 1050 and lock or hide TL2&lt;/P&gt;
&lt;P&gt;If TL1 =2 then do nothing but unlock TL2 for manual entry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to set a range of values for TL2 to control custom entry or preset lengths.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 18:38:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/values-2-List-Custom-Parameter-Question/m-p/576504#M5885</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2023-11-20T18:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: values{2} List - Custom Parameter Question</title>
      <link>https://community.graphisoft.com/t5/GDL/values-2-List-Custom-Parameter-Question/m-p/576518#M5886</link>
      <description>&lt;P&gt;Oh that is brilliant, thank you so much DGSketcher!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 21:56:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/values-2-List-Custom-Parameter-Question/m-p/576518#M5886</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2023-11-20T21:56:54Z</dc:date>
    </item>
  </channel>
</rss>

