<?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: n REQUEST for name of surface in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/n-REQUEST-for-name-of-surface/m-p/332181#M2671</link>
    <description>&lt;P&gt;This script is for label, so first I need to get value (number of surface) from object and then transform number to name of surface. If I use c&amp;nbsp;&lt;SPAN&gt;without quotes result is "GENERAL" instead of name.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Mar 2022 07:24:20 GMT</pubDate>
    <dc:creator>Njegos T</dc:creator>
    <dc:date>2022-03-14T07:24:20Z</dc:date>
    <item>
      <title>n REQUEST for name of surface</title>
      <link>https://community.graphisoft.com/t5/GDL/n-REQUEST-for-name-of-surface/m-p/332008#M2666</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I need help how to write script to pull parameter for name of surface.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NjegosT_0-1646990199558.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/19600i2C72BF2136DC8EA7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NjegosT_0-1646990199558.png" alt="NjegosT_0-1646990199558.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tryed with&amp;nbsp;&lt;BR /&gt;&lt;EM&gt;n = REQUEST ("Name_of_material", "c", mat)&lt;/EM&gt;&amp;nbsp;and result that is writen in label is "GENERAL" no metter which surface I set in object, so I tryed with&lt;BR /&gt;&lt;EM&gt;n= REQUEST ("ASSOCLP_PARVALUE_WITH_DESCRIPTION", "c", name_or_index, type, flags, dim1, dim2, mat) &lt;/EM&gt;and result is number of surface "231".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NjegosT_1-1646991035157.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/19601i927422CC09C3669B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NjegosT_1-1646991035157.png" alt="NjegosT_1-1646991035157.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="NjegosT_2-1646991322040.png" style="width: 239px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/19602iD9190666748A78F3/image-dimensions/239x106?v=v2" width="239" height="106" role="button" title="NjegosT_2-1646991322040.png" alt="NjegosT_2-1646991322040.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I anyone know hot to write code to get instead number "231" surface name "RAL 7032" I'd be very thankfull! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 09:45:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/n-REQUEST-for-name-of-surface/m-p/332008#M2666</guid>
      <dc:creator>Njegos T</dc:creator>
      <dc:date>2022-03-11T09:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: n REQUEST for name of surface</title>
      <link>https://community.graphisoft.com/t5/GDL/n-REQUEST-for-name-of-surface/m-p/332010#M2667</link>
      <description>&lt;P&gt;&lt;EM&gt;n = REQUEST ("Name_of_material", 231, mat)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That should return the name of material index number &lt;EM&gt;231&amp;nbsp; &lt;/EM&gt;to the variable&lt;EM&gt; mat&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 09:56:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/n-REQUEST-for-name-of-surface/m-p/332010#M2667</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2022-03-11T09:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: n REQUEST for name of surface</title>
      <link>https://community.graphisoft.com/t5/GDL/n-REQUEST-for-name-of-surface/m-p/332011#M2668</link>
      <description>&lt;P&gt;Or use ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;n = REQUEST ("Name_of_material", c, mat)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without the quotes around c (your surface variable).&lt;/P&gt;
&lt;P&gt;c is the index number so you already have that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 10:06:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/n-REQUEST-for-name-of-surface/m-p/332011#M2668</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2022-03-11T10:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: n REQUEST for name of surface</title>
      <link>https://community.graphisoft.com/t5/GDL/n-REQUEST-for-name-of-surface/m-p/332013#M2669</link>
      <description>&lt;P&gt;It work now. First I get the number of material&lt;BR /&gt;&lt;EM&gt;n= REQUEST ("ASSOCLP_PARVALUE_WITH_DESCRIPTION", "c", name_or_index, type, flags, dim1, dim2, matnum)&lt;BR /&gt;&lt;/EM&gt;and then from number I got the name&lt;BR /&gt;&lt;EM&gt;n = REQUEST ("Name_of_material", matnum, mat)&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;Thanks a lot!!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 10:27:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/n-REQUEST-for-name-of-surface/m-p/332013#M2669</guid>
      <dc:creator>Njegos T</dc:creator>
      <dc:date>2022-03-11T10:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: n REQUEST for name of surface</title>
      <link>https://community.graphisoft.com/t5/GDL/n-REQUEST-for-name-of-surface/m-p/332036#M2670</link>
      <description>&lt;P&gt;But if you have the parameter c for your material, you already have the number.&lt;/P&gt;
&lt;P&gt;So just use c without quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unless it is in the Master or Parameter script, then you have to do it as you stated with &lt;EM&gt;ASSOCLP_PARVALUE_WITH_DESCRIPTION&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I always forget that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 15:52:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/n-REQUEST-for-name-of-surface/m-p/332036#M2670</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2022-03-11T15:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: n REQUEST for name of surface</title>
      <link>https://community.graphisoft.com/t5/GDL/n-REQUEST-for-name-of-surface/m-p/332181#M2671</link>
      <description>&lt;P&gt;This script is for label, so first I need to get value (number of surface) from object and then transform number to name of surface. If I use c&amp;nbsp;&lt;SPAN&gt;without quotes result is "GENERAL" instead of name.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 07:24:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/n-REQUEST-for-name-of-surface/m-p/332181#M2671</guid>
      <dc:creator>Njegos T</dc:creator>
      <dc:date>2022-03-14T07:24:20Z</dc:date>
    </item>
  </channel>
</rss>

