<?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 Can't the options in VALUES{2} be duplicated? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Can-t-the-options-in-VALUES-2-be-duplicated/m-p/358174#M2188</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a problem with my skin label.&lt;/P&gt;&lt;P&gt;It has a parameter named "iselectfinish" for showing name of user select skin&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="soo_0-1665123840662.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/30462i9FD805FA7494AF7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="soo_0-1665123840662.png" alt="soo_0-1665123840662.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and this parameter works usually well.&lt;/P&gt;&lt;P&gt;but if a wall&lt;SPAN&gt;&amp;nbsp;has skins with the same thickness and name, it's not working.&lt;/SPAN&gt;&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;&lt;P&gt;&lt;SPAN&gt;When the wall doesn't have the same thickness and name, working good.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="soo_1-1665124151161.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/30463iF34DA021406A47ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="soo_1-1665124151161.png" alt="soo_1-1665124151161.png" /&gt;&lt;/span&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is when it has&amp;nbsp;&lt;SPAN&gt;skins with the same thickness and name on one wall.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this option tap is not working properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="soo_2-1665124181985.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/30464iCF568836BF606933/image-size/medium?v=v2&amp;amp;px=400" role="button" title="soo_2-1665124181985.png" alt="soo_2-1665124181985.png" /&gt;&lt;/span&gt;&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;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;P&gt;&amp;lt;MASTER&amp;gt;&lt;/P&gt;&lt;P&gt;if GLOB_SCRIPT_TYPE &amp;lt;&amp;gt; 2 and GLOB_SCRIPT_TYPE &amp;lt;&amp;gt; 3 then&lt;BR /&gt;dim stSelectFinish[]&lt;/P&gt;&lt;P&gt;for i = 1 to numFinish&lt;BR /&gt;if (fra(thkFinish[i]*1000)=0) then&lt;BR /&gt;stSelectFinish[i] = "THK" + str("%.0mm", thkFinish[i]) + " " + stFinish[i]&lt;BR /&gt;else&lt;BR /&gt;stSelectFinish[i] = "THK" + str("%.1mm", thkFinish[i]) + " " + stFinish[i]&lt;BR /&gt;endif&lt;BR /&gt;next i&lt;BR /&gt;endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;PARAMETER&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;dim _iSelectFinish[], _stSelectFinish[]&lt;/P&gt;&lt;P&gt;for i = 1 to numFinish&lt;BR /&gt;_iSelectFinish[i] = i&lt;BR /&gt;_stSelectFinish[i] = stSelectFinish[i]&lt;/P&gt;&lt;P&gt;next i&lt;/P&gt;&lt;P&gt;values{2} "iSelectFinish" _iSelectFinish, _stSelectFinish&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess this problem come from "valuse{2}" but&amp;nbsp;&lt;SPAN&gt;I couldn't find a way to improve it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How can i solve this problem? please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2022 06:35:37 GMT</pubDate>
    <dc:creator>soo</dc:creator>
    <dc:date>2022-10-07T06:35:37Z</dc:date>
    <item>
      <title>Can't the options in VALUES{2} be duplicated?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-t-the-options-in-VALUES-2-be-duplicated/m-p/358174#M2188</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a problem with my skin label.&lt;/P&gt;&lt;P&gt;It has a parameter named "iselectfinish" for showing name of user select skin&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="soo_0-1665123840662.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/30462i9FD805FA7494AF7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="soo_0-1665123840662.png" alt="soo_0-1665123840662.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and this parameter works usually well.&lt;/P&gt;&lt;P&gt;but if a wall&lt;SPAN&gt;&amp;nbsp;has skins with the same thickness and name, it's not working.&lt;/SPAN&gt;&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;&lt;P&gt;&lt;SPAN&gt;When the wall doesn't have the same thickness and name, working good.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="soo_1-1665124151161.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/30463iF34DA021406A47ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="soo_1-1665124151161.png" alt="soo_1-1665124151161.png" /&gt;&lt;/span&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is when it has&amp;nbsp;&lt;SPAN&gt;skins with the same thickness and name on one wall.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this option tap is not working properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="soo_2-1665124181985.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/30464iCF568836BF606933/image-size/medium?v=v2&amp;amp;px=400" role="button" title="soo_2-1665124181985.png" alt="soo_2-1665124181985.png" /&gt;&lt;/span&gt;&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;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;P&gt;&amp;lt;MASTER&amp;gt;&lt;/P&gt;&lt;P&gt;if GLOB_SCRIPT_TYPE &amp;lt;&amp;gt; 2 and GLOB_SCRIPT_TYPE &amp;lt;&amp;gt; 3 then&lt;BR /&gt;dim stSelectFinish[]&lt;/P&gt;&lt;P&gt;for i = 1 to numFinish&lt;BR /&gt;if (fra(thkFinish[i]*1000)=0) then&lt;BR /&gt;stSelectFinish[i] = "THK" + str("%.0mm", thkFinish[i]) + " " + stFinish[i]&lt;BR /&gt;else&lt;BR /&gt;stSelectFinish[i] = "THK" + str("%.1mm", thkFinish[i]) + " " + stFinish[i]&lt;BR /&gt;endif&lt;BR /&gt;next i&lt;BR /&gt;endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;PARAMETER&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;dim _iSelectFinish[], _stSelectFinish[]&lt;/P&gt;&lt;P&gt;for i = 1 to numFinish&lt;BR /&gt;_iSelectFinish[i] = i&lt;BR /&gt;_stSelectFinish[i] = stSelectFinish[i]&lt;/P&gt;&lt;P&gt;next i&lt;/P&gt;&lt;P&gt;values{2} "iSelectFinish" _iSelectFinish, _stSelectFinish&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess this problem come from "valuse{2}" but&amp;nbsp;&lt;SPAN&gt;I couldn't find a way to improve it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How can i solve this problem? please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 06:35:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-t-the-options-in-VALUES-2-be-duplicated/m-p/358174#M2188</guid>
      <dc:creator>soo</dc:creator>
      <dc:date>2022-10-07T06:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can't the options in VALUES{2} be duplicated?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-t-the-options-in-VALUES-2-be-duplicated/m-p/358191#M2189</link>
      <description>&lt;P&gt;There is something to know about "VALUES{2}" and that is its inability to have identical values.&lt;/P&gt;&lt;P&gt;Neither the integer, nor the associated value are allowed to be repeated. Just think of it, you have two items named the same, which one is the right one? The user surely doesn't know!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To avoid that I would do a another check if both thickness and name repeat, and if so append a number to the name.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 12:57:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-t-the-options-in-VALUES-2-be-duplicated/m-p/358191#M2189</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2022-10-07T12:57:19Z</dc:date>
    </item>
  </channel>
</rss>

