<?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: Is there a way to request a building material name? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263513#M2985</link>
    <description>This one is a little bit tricky.&lt;BR /&gt;
First, your element can have several Building Materials - if it's a composite wall, slab, or roof.&lt;BR /&gt;
Second - you need to determine first in your label script - what is the element - is it fill, slab, roof, wall, beam, etc. For that, you need to use the global variable GLOB_ELEM_TYPE.&lt;BR /&gt;
After your label script knows to which element is attached, it can scan receive building material name from another global variable: &lt;BR /&gt;
WALL_BMAT_NAME or WALL_SKINS_BMAT_NAMES&lt;BR /&gt;
COLU_CORE_BMAT or COLU_VENEER_BMAT&lt;BR /&gt;
etc.&lt;BR /&gt;
You can find the list of global variables at the end of the GDL Manual in the section Miscellaneous.&lt;BR /&gt;
&lt;BR /&gt;
With GDL objects even more complicated - you need to request variable value from the script and receive building material name via &lt;BR /&gt;

&lt;PRE&gt;n = REQUEST ("ASSOCLP_PARVALUE", expr, name_or_index, type, flags, dim1, dim2, p_values)&lt;/PRE&gt;</description>
    <pubDate>Sat, 01 May 2021 07:08:33 GMT</pubDate>
    <dc:creator>Podolsky</dc:creator>
    <dc:date>2021-05-01T07:08:33Z</dc:date>
    <item>
      <title>Is there a way to request a building material name?</title>
      <link>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263510#M2982</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I want to display the building_material used for the element in text.&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;n = REQUEST ("Name_of_building_material", index, name)
text2 0,0, name&lt;/PRE&gt;
&lt;BR /&gt;Archicad24 doesn't seem to work with the above script.&lt;BR /&gt;The building material name will be "undefined".&lt;BR /&gt;Please tell me the solution&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:16:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263510#M2982</guid>
      <dc:creator>Akira Ishida</dc:creator>
      <dc:date>2021-09-14T07:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to request a building material name?</title>
      <link>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263511#M2983</link>
      <description>You have to supply the index number of an actual building material, otherwise it doesn't know which one you want.&lt;BR /&gt;
&lt;BR /&gt;
i.e.&lt;BR /&gt;

&lt;PRE&gt;n = REQUEST ("Name_of_building_material", 100, name)
text2 0,0, name
&lt;/PRE&gt;

Barry.</description>
      <pubDate>Fri, 30 Apr 2021 09:33:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263511#M2983</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-04-30T09:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to request a building material name?</title>
      <link>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263512#M2984</link>
      <description>Thank you for your answer.&lt;BR /&gt;
I found that I had to enter the index number when using this request command.&lt;BR /&gt;
&lt;BR /&gt;
What command should I use to read the building material of an element and display it in text when the label is placed?</description>
      <pubDate>Fri, 30 Apr 2021 23:08:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263512#M2984</guid>
      <dc:creator>Akira Ishida</dc:creator>
      <dc:date>2021-04-30T23:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to request a building material name?</title>
      <link>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263513#M2985</link>
      <description>This one is a little bit tricky.&lt;BR /&gt;
First, your element can have several Building Materials - if it's a composite wall, slab, or roof.&lt;BR /&gt;
Second - you need to determine first in your label script - what is the element - is it fill, slab, roof, wall, beam, etc. For that, you need to use the global variable GLOB_ELEM_TYPE.&lt;BR /&gt;
After your label script knows to which element is attached, it can scan receive building material name from another global variable: &lt;BR /&gt;
WALL_BMAT_NAME or WALL_SKINS_BMAT_NAMES&lt;BR /&gt;
COLU_CORE_BMAT or COLU_VENEER_BMAT&lt;BR /&gt;
etc.&lt;BR /&gt;
You can find the list of global variables at the end of the GDL Manual in the section Miscellaneous.&lt;BR /&gt;
&lt;BR /&gt;
With GDL objects even more complicated - you need to request variable value from the script and receive building material name via &lt;BR /&gt;

&lt;PRE&gt;n = REQUEST ("ASSOCLP_PARVALUE", expr, name_or_index, type, flags, dim1, dim2, p_values)&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 May 2021 07:08:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263513#M2985</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-05-01T07:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to request a building material name?</title>
      <link>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263514#M2986</link>
      <description>Thank you for your answer.&lt;BR /&gt;
&lt;BR /&gt;
I was able to confirm the operation of the label.&lt;BR /&gt;
(If I actually use this, I need a little more ingenuity.)&lt;BR /&gt;
&lt;BR /&gt;
By the way, can I load the building material into the object in the same way when the subtype is "model element"?&lt;BR /&gt;

&lt;PRE&gt;BMAT_information = ""

!5 -WALL
IF GLOB_ELEM_TYPE = 5 THEN
	IF WALL_SKINS_NUMBER = 0 THEN
		BMAT_information = WALL_BMAT_NAME

	ELSE
		BMAT_information = WALL_SKINS_BMAT_NAMES[1][1]
	ENDIF
ENDIF

!6 -COLUMN
IF GLOB_ELEM_TYPE = 6 THEN
	BMAT_information = COLU_VENEER_BMAT_NAME
ENDIF

!7 -SLUB
IF GLOB_ELEM_TYPE = 7 THEN
	IF SLAB_SKINS_NUMBER = 0 THEN
		BMAT_information = SLAB_BMAT_NAME
	ELSE
		BMAT_information = SLAB_SKINS_BMAT_NAMES[1][1]
	ENDIF
ENDIF

!8 -ROOF
IF GLOB_ELEM_TYPE = 8 THEN
	BMAT_information = ROOF_BMAT_NAME
ENDIF

!12 -BEAM
IF GLOB_ELEM_TYPE = 12 THEN
	BMAT_information = BEAM_BMAT_NAME
ENDIF

TEXT2 0,0,BMAT_information&lt;/PRE&gt;</description>
      <pubDate>Sun, 02 May 2021 01:04:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263514#M2986</guid>
      <dc:creator>Akira Ishida</dc:creator>
      <dc:date>2021-05-02T01:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to request a building material name?</title>
      <link>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263515#M2987</link>
      <description>Script looks OK.&lt;BR /&gt;
&lt;BR /&gt;
I didn't get your last question.&lt;BR /&gt;
To receive Building Material name from the object you need to use this script:&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;!1 -OBJECT
IF GLOB_ELEM_TYPE = 1 THEN
	n = REQUEST ("ASSOCLP_PARVALUE", expr, name_or_index, type, flags, dim1, dim2, p_values)
        IF n AND type = 16 THEN BMAT_Information = p_values
ENDIF&lt;/PRE&gt;

&lt;BR /&gt;
where expr - the name of the parameter in the object, related to Building Material.&lt;BR /&gt;
&lt;BR /&gt;
Don't forget to define fill for the label. It's useful when you do 2D details. The attached example is showing a custom-made label, that defines Building Material names on details.</description>
      <pubDate>Sun, 02 May 2021 10:39:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263515#M2987</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-05-02T10:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to request a building material name?</title>
      <link>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263516#M2988</link>
      <description>Somewhat related: is there a way to request user-made property values of a building material?&lt;BR /&gt;
E.g. I define the vapour resistance of a material, which is not part of the "normal" building physics properties...</description>
      <pubDate>Sun, 25 Jul 2021 06:45:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263516#M2988</guid>
      <dc:creator>furtonb</dc:creator>
      <dc:date>2021-07-25T06:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to request a building material name?</title>
      <link>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263517#M2989</link>
      <description>&lt;BLOCKQUOTE&gt;furtonb wrote:&lt;BR /&gt;
Somewhat related: is there a way to request user-made property values of a building material?&lt;BR /&gt;
E.g. I define the vapour resistance of a material, which is not part of the "normal" building physics properties...
&lt;/BLOCKQUOTE&gt;

&lt;A href="http://gdl.graphisoft.com/reference-guide/request-options#COMPONENT_PROPERTIES_OF_PARENT_request" target="_blank"&gt;REQUEST "Component_Properties_Of_Parent"&lt;/A&gt;?&lt;BR /&gt;
&lt;BR /&gt;
The Archicad Library uses this in Component Classification and Properties Label.</description>
      <pubDate>Thu, 29 Jul 2021 08:54:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263517#M2989</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2021-07-29T08:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to request a building material name?</title>
      <link>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263518#M2990</link>
      <description>There is not an off-the-shelf way to do this with autotext.&lt;BR /&gt;
I suppose with GDL it could be done, but the solution for this should come out of the box.</description>
      <pubDate>Sat, 14 Aug 2021 21:44:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263518#M2990</guid>
      <dc:creator>gdford</dc:creator>
      <dc:date>2021-08-14T21:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to request a building material name?</title>
      <link>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263519#M2991</link>
      <description>I agree. The most comprehensive access to properties/GDL parameters is within the interactive schedule criteria and field list. It would be useful to have the same access depth in autotext labels.&lt;BR /&gt;
&lt;BR /&gt;
Another issue is extracting sub-element information: with hierarchial elements (curtain walls, railings) you can press tab to get a level deeper and annotate CW panels, etc., but with composites I cannot do that AFAIK.&lt;BR /&gt;
&lt;BR /&gt;
E.g. you have a composite wall and you want to annotate the manufacturer and description of the core - which is something you define at the bMat level.</description>
      <pubDate>Wed, 18 Aug 2021 21:12:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Is-there-a-way-to-request-a-building-material-name/m-p/263519#M2991</guid>
      <dc:creator>furtonb</dc:creator>
      <dc:date>2021-08-18T21:12:53Z</dc:date>
    </item>
  </channel>
</rss>

