<?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: Unable to Retrieve Stair Tread Depth via API_Element (Value Always 1) in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-Retrieve-Stair-Tread-Depth-via-API-Element-Value/m-p/688834#M10749</link>
    <description>&lt;P&gt;Thank you for your reply, Bernd.&lt;/P&gt;&lt;P&gt;Retrieving from element memo seems to be a good way to try. Thank you for your advise!&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jan 2026 04:16:47 GMT</pubDate>
    <dc:creator>Jin T</dc:creator>
    <dc:date>2026-01-12T04:16:47Z</dc:date>
    <item>
      <title>Unable to Retrieve Stair Tread Depth via API_Element (Value Always 1)</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-Retrieve-Stair-Tread-Depth-via-API-Element-Value/m-p/688168#M10742</link>
      <description>&lt;P&gt;I would like to retrieve the stair tread depth using the Archicad API. I tried accessing stair.treadDepth from API_Element, but the returned value is always 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask what might be causing this issue? Or is the tread depth not supposed to be obtained from this field?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are a test screenshot and the source code used for retrieving the stair tread depth.&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt; API_Neig neig;
 API_ElemType elemtype = API_StairID;
 if (ClickAnElem("click a stair", API_StairID, &amp;amp;neig)) {
 API_Element elem;
 elem.header.guid = neig.guid;
 GSErrCode err = ACAPI_Element_Get(&amp;amp;elem);
 if (err == NoError) {
 GS::UniString msg = "treadDepth = ";
 msg += GS::ValueToUniString(elem.stair.treadDepth);
 ACAPI_WriteReport(msg, true);
 };
 }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JinT_1-1767751200716.png" style="width: 799px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/95847i8BD3BE9E35457E18/image-dimensions/799x597?v=v2" width="799" height="597" role="button" title="JinT_1-1767751200716.png" alt="JinT_1-1767751200716.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JinT_0-1767751059924.png" style="width: 601px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/95846iE5FD9540D8F67BBD/image-dimensions/601x335?v=v2" width="601" height="335" role="button" title="JinT_0-1767751059924.png" alt="JinT_0-1767751059924.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 00:56:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-Retrieve-Stair-Tread-Depth-via-API-Element-Value/m-p/688168#M10742</guid>
      <dc:creator>Jin T</dc:creator>
      <dc:date>2026-01-08T00:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Retrieve Stair Tread Depth via API_Element (Value Always 1)</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-Retrieve-Stair-Tread-Depth-via-API-Element-Value/m-p/688570#M10743</link>
      <description>&lt;P&gt;Hi Jin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried your code and get the same result: For stairs with fixed goings, the treadDepth is always "1.0".&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Maybe the actual tread depth needs to be calculated from other values or retrieved from every single tread via the element memo.&lt;BR /&gt;I've tried changing the 'treadDepth' to '2.0' and use 'ACAPI_Element_Change', but nothing happens (also no error).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2026 08:12:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-Retrieve-Stair-Tread-Depth-via-API-Element-Value/m-p/688570#M10743</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2026-01-09T08:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Retrieve Stair Tread Depth via API_Element (Value Always 1)</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-Retrieve-Stair-Tread-Depth-via-API-Element-Value/m-p/688834#M10749</link>
      <description>&lt;P&gt;Thank you for your reply, Bernd.&lt;/P&gt;&lt;P&gt;Retrieving from element memo seems to be a good way to try. Thank you for your advise!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jan 2026 04:16:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Unable-to-Retrieve-Stair-Tread-Depth-via-API-Element-Value/m-p/688834#M10749</guid>
      <dc:creator>Jin T</dc:creator>
      <dc:date>2026-01-12T04:16:47Z</dc:date>
    </item>
  </channel>
</rss>

