<?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: Get building material name from ID in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-building-material-name-from-ID/m-p/311144#M4440</link>
    <description>&lt;P&gt;So close to what I did, but so far! Thanks, works great!&lt;/P&gt;</description>
    <pubDate>Fri, 22 Oct 2021 08:42:03 GMT</pubDate>
    <dc:creator>Kaj_AL</dc:creator>
    <dc:date>2021-10-22T08:42:03Z</dc:date>
    <item>
      <title>Get building material name from ID</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-building-material-name-from-ID/m-p/311136#M4438</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my GDL object Properties script, I have building material and material information that I would like to translate from Index to Name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, I have a building material with index 97 and the name Offices. In my lists, I use the building material as a unit. Right now, I have written&lt;/P&gt;
&lt;P&gt;IF bui_mat=97 THEN program="Offices"&lt;/P&gt;
&lt;P&gt;which obviously isn't the best way to do it (and is prone to mistakes), but I just can't figure out how to do it. I've tried following guides with different REQUEST codes, but I'm doing something wrong. How do I do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;/Kaj&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 09:19:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-building-material-name-from-ID/m-p/311136#M4438</guid>
      <dc:creator>Kaj_AL</dc:creator>
      <dc:date>2024-09-09T09:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Get building material name from ID</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-building-material-name-from-ID/m-p/311140#M4439</link>
      <description>&lt;P&gt;n = REQUEST ("Name_of_building_material", index, name)&lt;BR /&gt;Returns in the variable the building material name identified by index.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should work for you.&lt;/P&gt;
&lt;P&gt;You add the index number and it will tell you the name in the 'name' variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So in your case...&lt;/P&gt;
&lt;P&gt;n = REQUEST ("Name_of_building_material", 97, name)&lt;/P&gt;
&lt;P&gt;PRINT name (or do what ever else it is you want to do with 'name'.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 07:43:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-building-material-name-from-ID/m-p/311140#M4439</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-10-22T07:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get building material name from ID</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-building-material-name-from-ID/m-p/311144#M4440</link>
      <description>&lt;P&gt;So close to what I did, but so far! Thanks, works great!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 08:42:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-building-material-name-from-ID/m-p/311144#M4440</guid>
      <dc:creator>Kaj_AL</dc:creator>
      <dc:date>2021-10-22T08:42:03Z</dc:date>
    </item>
  </channel>
</rss>

