<?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 Applying Materials to Stair Threads and Risers in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Applying-Materials-to-Stair-Threads-and-Risers/m-p/588713#M9172</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I'm working with the ArchiCAD C++ API and can apply materials to an entire stair, but I'm stuck on how to apply different materials to just the threads and risers. Does anyone know how to do this?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;This is my current code to apply the materials to the structure&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;	API_OverriddenAttribute attr = GetOverriddenAttribute(GetAttributeIndex(strdup(surfaceMaterial.c_str()), API_MaterialID));

	element.stair.structure[0][2].data.monolith.topMaterial = attr;
	element.stair.structure[0][2].data.monolith.rightMaterial = attr;
	element.stair.structure[0][2].data.monolith.leftMaterial = attr;
	element.stair.structure[0][2].data.monolith.bottomMaterial = attr;
	element.stair.structure[1][2].data.monolith.topMaterial = attr;
	element.stair.structure[1][2].data.monolith.rightMaterial = attr;
	element.stair.structure[1][2].data.monolith.leftMaterial = attr;
	element.stair.structure[1][2].data.monolith.bottomMaterial = attr;
	element.stair.structure[1][2].data.monolith.materialsChained = false;
	element.stair.structure[0][2].data.monolith.materialsChained = false;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2024 12:58:40 GMT</pubDate>
    <dc:creator>sijocherian</dc:creator>
    <dc:date>2024-09-16T12:58:40Z</dc:date>
    <item>
      <title>Applying Materials to Stair Threads and Risers</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Applying-Materials-to-Stair-Threads-and-Risers/m-p/588713#M9172</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm working with the ArchiCAD C++ API and can apply materials to an entire stair, but I'm stuck on how to apply different materials to just the threads and risers. Does anyone know how to do this?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;This is my current code to apply the materials to the structure&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;	API_OverriddenAttribute attr = GetOverriddenAttribute(GetAttributeIndex(strdup(surfaceMaterial.c_str()), API_MaterialID));

	element.stair.structure[0][2].data.monolith.topMaterial = attr;
	element.stair.structure[0][2].data.monolith.rightMaterial = attr;
	element.stair.structure[0][2].data.monolith.leftMaterial = attr;
	element.stair.structure[0][2].data.monolith.bottomMaterial = attr;
	element.stair.structure[1][2].data.monolith.topMaterial = attr;
	element.stair.structure[1][2].data.monolith.rightMaterial = attr;
	element.stair.structure[1][2].data.monolith.leftMaterial = attr;
	element.stair.structure[1][2].data.monolith.bottomMaterial = attr;
	element.stair.structure[1][2].data.monolith.materialsChained = false;
	element.stair.structure[0][2].data.monolith.materialsChained = false;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:58:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Applying-Materials-to-Stair-Threads-and-Risers/m-p/588713#M9172</guid>
      <dc:creator>sijocherian</dc:creator>
      <dc:date>2024-09-16T12:58:40Z</dc:date>
    </item>
  </channel>
</rss>

