<?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 GDL object with parametric label in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/GDL-object-with-parametric-label/m-p/400817#M5705</link>
    <description>&lt;P&gt;I am creating an object using GDL and I would like to know if there is a way for me to insert a label in 2D with text linked to the material used in the object.&lt;/P&gt;
&lt;P&gt;For example, if I insert the concrete material into the object, the label automatically updates and shows the "concrete" 2D text.&lt;BR /&gt;Is there a way to do this via GDL?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2024 08:28:07 GMT</pubDate>
    <dc:creator>rodlee94</dc:creator>
    <dc:date>2024-09-24T08:28:07Z</dc:date>
    <item>
      <title>GDL object with parametric label</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-object-with-parametric-label/m-p/400817#M5705</link>
      <description>&lt;P&gt;I am creating an object using GDL and I would like to know if there is a way for me to insert a label in 2D with text linked to the material used in the object.&lt;/P&gt;
&lt;P&gt;For example, if I insert the concrete material into the object, the label automatically updates and shows the "concrete" 2D text.&lt;BR /&gt;Is there a way to do this via GDL?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 08:28:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-object-with-parametric-label/m-p/400817#M5705</guid>
      <dc:creator>rodlee94</dc:creator>
      <dc:date>2024-09-24T08:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: GDL object with parametric label</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-object-with-parametric-label/m-p/400828#M5706</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/79034"&gt;@rodlee94&lt;/a&gt; , yes it's possible. You would need to request the name of the material and use it with the text2 command.&lt;/P&gt;
&lt;P&gt;So if you select your concrete material from a parameter named "materialParam" for example it would go like this :&lt;/P&gt;
&lt;LI-CODE lang="ruby"&gt;n = request("Name_of_material", materialParam, name)
x = 0
y = 0

if n &amp;gt; 0 then
	text2 x, y, name
endif&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The request retrieves the name of the material in a variable called "name". If it can't retrieve anything then "n" is equal to 0 hence the if condition wrapping the text2. Then you can use the text2 command to display it in plan view with coordinates that you can set up the way you want.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 17:49:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-object-with-parametric-label/m-p/400828#M5706</guid>
      <dc:creator>MetalFingerz</dc:creator>
      <dc:date>2023-10-04T17:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: GDL object with parametric label</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-object-with-parametric-label/m-p/400902#M5707</link>
      <description>&lt;P&gt;Can I ask a question about "Name of material", the manual said it does not compatible with ac&lt;/P&gt;&lt;P&gt;20 above??&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipaste_2023-10-05_13-31-11.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/46823iD5125A3E41A2ADFF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snipaste_2023-10-05_13-31-11.png" alt="Snipaste_2023-10-05_13-31-11.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 05:34:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-object-with-parametric-label/m-p/400902#M5707</guid>
      <dc:creator>Funfun Yan</dc:creator>
      <dc:date>2023-10-05T05:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: GDL object with parametric label</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-object-with-parametric-label/m-p/400905#M5708</link>
      <description>&lt;P&gt;That is if you try to request the name of the material in the parameter or master scripts.&lt;/P&gt;
&lt;P&gt;But if you request it in the 2D or 3D scripts, it should be fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 05:58:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-object-with-parametric-label/m-p/400905#M5708</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-10-05T05:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: GDL object with parametric label</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-object-with-parametric-label/m-p/400906#M5709</link>
      <description>&lt;P&gt;I see, thank you!&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 06:24:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-object-with-parametric-label/m-p/400906#M5709</guid>
      <dc:creator>Funfun Yan</dc:creator>
      <dc:date>2023-10-05T06:24:24Z</dc:date>
    </item>
  </channel>
</rss>

