<?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: How to use GDL to get building material ID? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-use-GDL-to-get-building-material-ID/m-p/231730#M5560</link>
    <description>Try the following GDL command:&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;&lt;PRE&gt;REQUEST{2} ("Building_Material_info", name_or_index, param_name, value_or_values)&lt;/PRE&gt;

Returns information in the given variable(s) on a parameter of the specified building material. Expression returns 0 and contains dummy return values&lt;BR /&gt;
(emtpy string or 0) if used in parameter script, causing additional warning. Possible building material parameter names corresponding to parameters of&lt;BR /&gt;
the building material definition:&lt;BR /&gt;
param_name:&lt;BR /&gt;
"gs_bmat_id": building material id&lt;BR /&gt;
"gs_bmat_surface": building material surface index&lt;BR /&gt;
"gs_bmat_description": building material description&lt;BR /&gt;
"gs_bmat_manufacturer": building material manufacturer&lt;BR /&gt;
"gs_bmat_collisiondetection": building material participates in collision detection (0 or 1)&lt;BR /&gt;
"gs_bmat_intersectionpriority": building material intersection priority&lt;BR /&gt;
"gs_bmat_cutFill_properties": building material cut fill properties (cut fill index number, cut fill foreground pen index number,&lt;BR /&gt;
cut fill background pen index number)&lt;BR /&gt;
"gs_bmat_physical_properties": building material physical properties (thermal conductivity, density, heat capacity, embodied&lt;BR /&gt;
energy, embodied carbon)&lt;BR /&gt;
&lt;BR /&gt;
Examples: &lt;BR /&gt;
&lt;BR /&gt;
REQUEST{2} ("Building_Material_info", "Brick", "gs_bmat_id", id)&lt;BR /&gt;
REQUEST{2} ("Building_Material_info", "Brick", "gs_bmat_surface", index)&lt;BR /&gt;
REQUEST{2} ("Building_Material_info", "Brick", "gs_bmat_physical_properties", thermalConductivity, density, heatCapacity, embodiedEnergy, embodiedCarbon)&lt;/BLOCKQUOTE&gt;

In AC21 it is detailed on Page 450 of the GDL Reference Guide.</description>
    <pubDate>Sun, 24 Sep 2017 00:17:15 GMT</pubDate>
    <dc:creator>Laszlo Nagy</dc:creator>
    <dc:date>2017-09-24T00:17:15Z</dc:date>
    <item>
      <title>How to use GDL to get building material ID?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-use-GDL-to-get-building-material-ID/m-p/231729#M5559</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;&lt;B&gt;&lt;FONT size="150"&gt;&lt;FONT color="red"&gt;Hello everyone! How can I get the building material ID at GDL? Please give me help, thanks!&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;
&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;IMG src="https://i.imgur.com/2LH7Z07.png" /&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Sep 2017 06:06:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-use-GDL-to-get-building-material-ID/m-p/231729#M5559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-22T06:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GDL to get building material ID?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-use-GDL-to-get-building-material-ID/m-p/231730#M5560</link>
      <description>Try the following GDL command:&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;&lt;PRE&gt;REQUEST{2} ("Building_Material_info", name_or_index, param_name, value_or_values)&lt;/PRE&gt;

Returns information in the given variable(s) on a parameter of the specified building material. Expression returns 0 and contains dummy return values&lt;BR /&gt;
(emtpy string or 0) if used in parameter script, causing additional warning. Possible building material parameter names corresponding to parameters of&lt;BR /&gt;
the building material definition:&lt;BR /&gt;
param_name:&lt;BR /&gt;
"gs_bmat_id": building material id&lt;BR /&gt;
"gs_bmat_surface": building material surface index&lt;BR /&gt;
"gs_bmat_description": building material description&lt;BR /&gt;
"gs_bmat_manufacturer": building material manufacturer&lt;BR /&gt;
"gs_bmat_collisiondetection": building material participates in collision detection (0 or 1)&lt;BR /&gt;
"gs_bmat_intersectionpriority": building material intersection priority&lt;BR /&gt;
"gs_bmat_cutFill_properties": building material cut fill properties (cut fill index number, cut fill foreground pen index number,&lt;BR /&gt;
cut fill background pen index number)&lt;BR /&gt;
"gs_bmat_physical_properties": building material physical properties (thermal conductivity, density, heat capacity, embodied&lt;BR /&gt;
energy, embodied carbon)&lt;BR /&gt;
&lt;BR /&gt;
Examples: &lt;BR /&gt;
&lt;BR /&gt;
REQUEST{2} ("Building_Material_info", "Brick", "gs_bmat_id", id)&lt;BR /&gt;
REQUEST{2} ("Building_Material_info", "Brick", "gs_bmat_surface", index)&lt;BR /&gt;
REQUEST{2} ("Building_Material_info", "Brick", "gs_bmat_physical_properties", thermalConductivity, density, heatCapacity, embodiedEnergy, embodiedCarbon)&lt;/BLOCKQUOTE&gt;

In AC21 it is detailed on Page 450 of the GDL Reference Guide.</description>
      <pubDate>Sun, 24 Sep 2017 00:17:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-use-GDL-to-get-building-material-ID/m-p/231730#M5560</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2017-09-24T00:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GDL to get building material ID?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-use-GDL-to-get-building-material-ID/m-p/231731#M5561</link>
      <description>Thank you laszlonagy help, I have successfully applied in the basic building structure, if it is a composite building structure is invalid.&lt;BR /&gt;
&lt;BR /&gt;
this is my code,I wrote a label to get slab building material information.
&lt;BLOCKQUOTE&gt;
REQUEST{2} ("Building_Material_info",SLAB_BMAT_NAME,"gs_bmat_id",id1) &lt;BR /&gt;
REQUEST{2("Building_Material_info",SLAB_BMAT_NAME,"gs_bmat_man&lt;BR /&gt;
facturer",id2) &lt;BR /&gt;
REQUEST{2} ("Building_Material_info",SLAB_BMAT_NAME, "gs_bmat_description",id3)	&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 25 Sep 2017 01:23:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-use-GDL-to-get-building-material-ID/m-p/231731#M5561</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-25T01:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GDL to get building material ID?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-use-GDL-to-get-building-material-ID/m-p/231732#M5562</link>
      <description>If you are scripting a label to read a slab composite, the data can be extracted using the parameters on p345-348 of the AC21 GDL guide.&lt;BR /&gt;
&lt;BR /&gt;
In particular you will want to look at SLAB_SKINS_BMAT_NAMES.  This is an array of all the Building materials in the composite.&lt;BR /&gt;
&lt;BR /&gt;
The code can be as simple as;&lt;BR /&gt;
&lt;BR /&gt;
TEXT2 0,0, SLAB_SKINS_BMAT_NAMES[1]&lt;BR /&gt;
&lt;BR /&gt;
This will display the external / top material in the composite.</description>
      <pubDate>Tue, 26 Sep 2017 07:28:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-use-GDL-to-get-building-material-ID/m-p/231732#M5562</guid>
      <dc:creator>Lachlan Green</dc:creator>
      <dc:date>2017-09-26T07:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GDL to get building material ID?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/How-to-use-GDL-to-get-building-material-ID/m-p/231733#M5563</link>
      <description>Is there a step by step tutorial on how all of this would be achieved? &lt;BR /&gt;
I am currently using AC21 &amp;amp; AC22.</description>
      <pubDate>Wed, 09 Jan 2019 06:02:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/How-to-use-GDL-to-get-building-material-ID/m-p/231733#M5563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-09T06:02:56Z</dc:date>
    </item>
  </channel>
</rss>

