<?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: Can I skip the value from the label to mark it? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Can-I-skip-the-value-from-the-label-to-mark-it/m-p/364007#M1611</link>
    <description>&lt;P&gt;It looks like you need to convert your data to a string and then exclude it with an if statement should the string not match&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2022 02:26:19 GMT</pubDate>
    <dc:creator>SenecaDesignLLC</dc:creator>
    <dc:date>2022-12-05T02:26:19Z</dc:date>
    <item>
      <title>Can I skip the value from the label to mark it?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-I-skip-the-value-from-the-label-to-mark-it/m-p/363983#M1609</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I'm making a label for&amp;nbsp;&lt;SPAN&gt;Finishing materials.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;there is a problem to solve that I want to skip the value named AIR but i don't know how to skip it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="soo_0-1670199535974.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/32164i2E67149009665CB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="soo_0-1670199535974.png" alt="soo_0-1670199535974.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, in this picture&amp;nbsp;&lt;SPAN&gt;Even if the slab contains 4 materials, I don't want to label the material named AIR.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;this is the scripts i used.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;for i = 1 to numText

if (fra(MATthk[n]*1000) &amp;gt; -eps and fra(MATthk[n]*1000) &amp;lt; eps) then
thk = str("%.0mm", MATthk[n])
else
thk = str("%.1mm", MATthk[n])
endif



autotxt[i] = "T" + thk + " " + MATname[n]
autoTHK[i] = MATthk[n]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I don't see how to exclude the value MATname[n] = "AIR" in the middle of this root.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Even if i force it to make it by removing the value, it was only marked as zero, but it was not completely removed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I want only three expressions: AA, BB, and CC on my label.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="soo_1-1670199536240.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/32166iA35529E055075682/image-size/medium?v=v2&amp;amp;px=400" role="button" title="soo_1-1670199536240.png" alt="soo_1-1670199536240.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="soo_2-1670199535968.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/32165i6E2C3CF7154169CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="soo_2-1670199535968.png" alt="soo_2-1670199535968.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Like this picture.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please help me to solve this problem.&lt;/P&gt;
&lt;P&gt;thank you.&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;I tried add some loop on script as someone adviced me before&lt;/P&gt;
&lt;P&gt;but it still put "air" or "0" on the screen.&lt;/P&gt;
&lt;P&gt;I want to SKIP the "air" line.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;for i = 1 to numText
if numTextAdd = 0 then
if MATname[i] = "공기 공간" then
autotxt[i] =autotxt[0]
else
if (fra(MATthk[n]*1000) &amp;gt; -eps and fra(MATthk[n]*1000) &amp;lt; eps) then
thk = str("%.0mm", MATthk[n])
else
thk = str("%.1mm", MATthk[n])
endif
autotxt[i] = "T" + thk + " " + MATname[n]
autoTHK[i] = MATthk[n]
if mirrorText = 0 then
n = n+1
else
n = n-1
endif
endif

next i&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 05 Dec 2022 20:10:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-I-skip-the-value-from-the-label-to-mark-it/m-p/363983#M1609</guid>
      <dc:creator>soo</dc:creator>
      <dc:date>2022-12-05T20:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can I skip the value from the label to mark it?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-I-skip-the-value-from-the-label-to-mark-it/m-p/364006#M1610</link>
      <description>&lt;P&gt;Hi Soo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you show how you have generated the texts? I am thinking that you should control this where you generate text.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;if MATname[i] = "공기 공간" then&lt;BR /&gt;&lt;/SPAN&gt;else&lt;BR /&gt;!!GENERATE TEXT!!&lt;BR /&gt;&lt;SPAN&gt;endif&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could also try utilising ID field of building material. For instance the ID of building materials you want to hide could be set to "-" and in the script you can request building material ID and set it to do nothing if ID is "-".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;n = REQUEST{2} ("Building_Material_info",n = REQUEST{2} ("Building_Material_info", name_or_index, "gs_bmat_id", MY_MATERIAL_ID)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JP1_0-1670205330573.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/32171i1BB6A0D69531D7DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JP1_0-1670205330573.png" alt="JP1_0-1670205330573.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 02:23:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-I-skip-the-value-from-the-label-to-mark-it/m-p/364006#M1610</guid>
      <dc:creator>JP1</dc:creator>
      <dc:date>2022-12-05T02:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can I skip the value from the label to mark it?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-I-skip-the-value-from-the-label-to-mark-it/m-p/364007#M1611</link>
      <description>&lt;P&gt;It looks like you need to convert your data to a string and then exclude it with an if statement should the string not match&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 02:26:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-I-skip-the-value-from-the-label-to-mark-it/m-p/364007#M1611</guid>
      <dc:creator>SenecaDesignLLC</dc:creator>
      <dc:date>2022-12-05T02:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can I skip the value from the label to mark it?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-I-skip-the-value-from-the-label-to-mark-it/m-p/364558#M1612</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="제목 없음-1.png" style="width: 590px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/32360i3DBA792029AE4582/image-size/large?v=v2&amp;amp;px=999" role="button" title="제목 없음-1.png" alt="제목 없음-1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;this is how i put the material name and material thickness.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if MATname[1] = "AIR"

then

else
for i = 1 to numText
if numTextAdd = 0 then
if (fra(MATthk[n]*1000) &amp;gt; -eps and fra(MATthk[n]*1000) &amp;lt; eps) then
thk = str("%.0mm", MATthk[n])
else
thk = str("%.1mm", MATthk[n])
endif
autotxt[i] = "T" + thk + " " + MATname[n]
autoTHK[i] = MATthk[n]
if mirrorText = 0 then
n = n+1
else
n = n-1
endif
endif

if numTextAdd = 1 then
if i = userTextPos1 then
autotxt[i] = userText1
autoTHK[i] = 0
endif
if i &amp;lt;&amp;gt; userTextPos1 then
if (fra(MATthk[n]*1000) &amp;gt; -eps and fra(MATthk[n]*1000) &amp;lt; eps) then
thk = str("%.0mm", MATthk[n])
else
thk = str("%.1mm", MATthk[n])
endif
autotxt[i] = "T" + thk + " " + MATname[n]
autoTHK[i] = MATthk[n]
if mirrorText = 0 then
n = n+1
else
n = n-1
endif
endif
endif
if numTextAdd = 2 then
if i = userTextPos1 then
autotxt[i] = userText1
autoTHK[i] = 0
endif
if i = userTextPos2 then
autotxt[i] = userText2
autoTHK[i] = 0
endif
if i &amp;lt;&amp;gt; userTextPos1 and i &amp;lt;&amp;gt; userTextPos2 then
if (fra(MATthk[n]*1000) &amp;gt; -eps and fra(MATthk[n]*1000) &amp;lt; eps) then
thk = str("%.0mm", MATthk[n])
else
thk = str("%.1mm", MATthk[n])
endif
autotxt[i] = "T" + thk + " " + MATname[n]
autoTHK[i] = MATthk[n]
if mirrorText = 0 then
n = n+1
else
n = n-1
endif
endif
endif
if numTextAdd = 3 then
if i = userTextPos1 then
autotxt[i] = userText1
autoTHK[i] = 0
endif
if i = userTextPos2 then
autotxt[i] = userText2
autoTHK[i] = 0
endif
if i = userTextPos3 then
autotxt[i] = userText3
autoTHK[i] = 0
endif
if i &amp;lt;&amp;gt; userTextPos1 and i &amp;lt;&amp;gt; userTextPos2 and i &amp;lt;&amp;gt; userTextPos3 then
if (fra(MATthk[n]*1000) &amp;gt; -eps and fra(MATthk[n]*1000) &amp;lt; eps) then
thk = str("%.0mm", MATthk[n])
else
thk = str("%.1mm", MATthk[n])
endif
autotxt[i] = "T" + thk + " " + MATname[n]
autoTHK[i] = MATthk[n]
if mirrorText = 0 then
n = n+1
else
n = n-1
endif
endif
endif
if numTextAdd = 4 then
if i = userTextPos1 then
autotxt[i] = userText1
autoTHK[i] = 0
endif
if i = userTextPos2 then
autotxt[i] = userText2
autoTHK[i] = 0
endif
if i = userTextPos3 then
autotxt[i] = userText3
autoTHK[i] = 0
endif
if i = userTextPos4 then
autotxt[i] = userText4
autoTHK[i] = 0
endif
if i &amp;lt;&amp;gt; userTextPos1 and i &amp;lt;&amp;gt; userTextPos2 and i &amp;lt;&amp;gt; userTextPos3 and i &amp;lt;&amp;gt; userTextPos4 then
if (fra(MATthk[n]*1000) &amp;gt; -eps and fra(MATthk[n]*1000) &amp;lt; eps) then
thk = str("%.0mm", MATthk[n])
else
thk = str("%.1mm", MATthk[n])
endif
autotxt[i] = "T" + thk + " " + MATname[n]
autoTHK[i] = MATthk[n]
if mirrorText = 0 then
n = n+1
else
n = n-1
endif
endif
endif
if numTextAdd = 5 then
if i = userTextPos1 then
autotxt[i] = userText1
autoTHK[i] = 0
endif
if i = userTextPos2 then
autotxt[i] = userText2
autoTHK[i] = 0
endif
if i = userTextPos3 then
autotxt[i] = userText3
autoTHK[i] = 0
endif
if i = userTextPos4 then
autotxt[i] = userText4
autoTHK[i] = 0
endif
if i = userTextPos5 then
autotxt[i] = userText5
autoTHK[i] = 0
endif
if i &amp;lt;&amp;gt; userTextPos1 and i &amp;lt;&amp;gt; userTextPos2 and i &amp;lt;&amp;gt; userTextPos3 and i &amp;lt;&amp;gt; userTextPos4 and i &amp;lt;&amp;gt; userTextPos4 then
if (fra(MATthk[n]*1000) &amp;gt; -eps and fra(MATthk[n]*1000) &amp;lt; eps) then
thk = str("%.0mm", MATthk[n])
else
thk = str("%.1mm", MATthk[n])
endif
autotxt[i] = "T" + thk + " " + MATname[n]
autoTHK[i] = MATthk[n]
if mirrorText = 0 then
n = n+1
else
n = n-1
endif
endif
endif
next i
endif&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="soo_2-1670576240912.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/32362i8724D5D9D78B5C32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="soo_2-1670576240912.png" alt="soo_2-1670576240912.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;i did that you wrote it before.&lt;/P&gt;
&lt;P&gt;and now it shows like this.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="soo_1-1670576210730.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/32361i48A727EF8AF6FB36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="soo_1-1670576210730.png" alt="soo_1-1670576210730.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;if you know how to pass the "AIR" away,&lt;/P&gt;
&lt;P&gt;please let me know&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 21:28:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-I-skip-the-value-from-the-label-to-mark-it/m-p/364558#M1612</guid>
      <dc:creator>soo</dc:creator>
      <dc:date>2022-12-10T21:28:15Z</dc:date>
    </item>
    <item>
      <title>How can i remove a row in the array ?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-I-skip-the-value-from-the-label-to-mark-it/m-p/364715#M1613</link>
      <description>&lt;P&gt;Hello I want to remove a specific value from an array.&lt;/P&gt;&lt;P&gt;For example, if the Label object can show Material Thickness and Material name togeter.&lt;/P&gt;&lt;P&gt;I removed only the "air" layer to don't display it on screen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I asked before twice in this board.&lt;/P&gt;&lt;P&gt;but the info i got last time, it just shows the value as 0, but I couldn't get rid of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 834px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/32400iCB0C2BA60FDBB421/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 590px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/32401i4C58382A8E768854/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 150px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/32403i4293E47653D5E753/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;-&amp;gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.png" style="width: 150px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/32402iD5B2EECF9CC7AC34/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i wanna make this label which can remove "AIR" row automatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach my file below.&lt;/P&gt;&lt;P&gt;plz let me know how to solve this problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 08:36:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-I-skip-the-value-from-the-label-to-mark-it/m-p/364715#M1613</guid>
      <dc:creator>soo</dc:creator>
      <dc:date>2022-12-12T08:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can i remove a row in the array ?</title>
      <link>https://community.graphisoft.com/t5/GDL/Can-I-skip-the-value-from-the-label-to-mark-it/m-p/364752#M1614</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GDL doesn't have the equivalent of break/continue in other languages.&lt;/P&gt;
&lt;P&gt;It would be simpler to add a condition where you are displaying the data with TEXT2.&lt;/P&gt;
&lt;P&gt;Or you need to be creative with goto:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;output = 1
for input = ...
    if MATName[input] = "AIR" then goto "nextMAT" ! skip input
    ! process input
    autotext[output] = ...
    ...
    output = output + 1
    "nextMAT":
next input

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 13:31:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Can-I-skip-the-value-from-the-label-to-mark-it/m-p/364752#M1614</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2022-12-12T13:31:54Z</dc:date>
    </item>
  </channel>
</rss>

