<?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: Getting material of a polygon, Component3D in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Getting-material-of-a-polygon-Component3D-solved/m-p/17424#M7335</link>
    <description>Found the answer here&lt;BR /&gt;
&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?p=15862&amp;amp;highlight=iumat#15862" target="_blank"&gt;&lt;LINK_TEXT text="http://archicad-talk.graphisoft.com/vie ... umat#15862"&gt;http://archicad-talk.graphisoft.com/viewtopic.php?p=15862&amp;amp;highlight=iumat#15862&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
 &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
    <pubDate>Fri, 03 Nov 2006 14:18:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-11-03T14:18:00Z</dc:date>
    <item>
      <title>Getting material of a polygon, Component3D[solved]</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Getting-material-of-a-polygon-Component3D-solved/m-p/17423#M7334</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I have some problems getting the material of polygons right, here is how I do it(short version without any error handling):&lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;...
attrib.header.typeID = API_MaterialID;
for(j = 1; j &amp;lt;= nPolygons; j++)
{
  component.header.typeID = API_PgonID;
  component.header.index = j;
  ACAPI_3D_GetComponent(&amp;amp;component);
  attrib.material.head.index = component.pgon.iumat;
  ACAPI_Attribute_Get (&amp;amp;attrib);
  Print(attrib.material.head.name);//prints wrong material name...
}
...
&lt;/PRE&gt;
Can you spot where the problem is?&lt;BR /&gt;&lt;BR /&gt;//Jesper&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Aug 2023 09:01:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Getting-material-of-a-polygon-Component3D-solved/m-p/17423#M7334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-07T09:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Getting material of a polygon, Component3D</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Getting-material-of-a-polygon-Component3D-solved/m-p/17424#M7335</link>
      <description>Found the answer here&lt;BR /&gt;
&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?p=15862&amp;amp;highlight=iumat#15862" target="_blank"&gt;&lt;LINK_TEXT text="http://archicad-talk.graphisoft.com/vie ... umat#15862"&gt;http://archicad-talk.graphisoft.com/viewtopic.php?p=15862&amp;amp;highlight=iumat#15862&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
 &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;</description>
      <pubDate>Fri, 03 Nov 2006 14:18:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Getting-material-of-a-polygon-Component3D-solved/m-p/17424#M7335</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-11-03T14:18:00Z</dc:date>
    </item>
  </channel>
</rss>

