<?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 Changing layer of a railing, bug? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-layer-of-a-railing-bug/m-p/230850#M4166</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;When I change the layer of railing element (AC21) using ACAPI_Element_Change() funtion, the railing changes its appearance. My code:&lt;BR /&gt;&lt;BR /&gt;API_Element elem, mask;&lt;BR /&gt;BNZeroMemory(&amp;amp;elem, API_ElementSize);&lt;BR /&gt;ACAPI_ELEMENT_MASK_CLEAR(mask);&lt;BR /&gt;ACAPI_ELEMENT_MASK_SET(mask, API_Elem_Head, layer);&lt;BR /&gt;elem.header.guid = /*railing element guid*/;&lt;BR /&gt;err = ACAPI_Element_Get(&amp;amp;elem);&lt;BR /&gt;elem.header.layer = /*new layer index*/;&lt;BR /&gt;err = ACAPI_Element_Change(&amp;amp;elem, &amp;amp;mask, NULL, NULL, true);&lt;/DIV&gt;</description>
    <pubDate>Wed, 30 Nov 2022 09:56:57 GMT</pubDate>
    <dc:creator>ReignBough</dc:creator>
    <dc:date>2022-11-30T09:56:57Z</dc:date>
    <item>
      <title>Changing layer of a railing, bug?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-layer-of-a-railing-bug/m-p/230850#M4166</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;When I change the layer of railing element (AC21) using ACAPI_Element_Change() funtion, the railing changes its appearance. My code:&lt;BR /&gt;&lt;BR /&gt;API_Element elem, mask;&lt;BR /&gt;BNZeroMemory(&amp;amp;elem, API_ElementSize);&lt;BR /&gt;ACAPI_ELEMENT_MASK_CLEAR(mask);&lt;BR /&gt;ACAPI_ELEMENT_MASK_SET(mask, API_Elem_Head, layer);&lt;BR /&gt;elem.header.guid = /*railing element guid*/;&lt;BR /&gt;err = ACAPI_Element_Get(&amp;amp;elem);&lt;BR /&gt;elem.header.layer = /*new layer index*/;&lt;BR /&gt;err = ACAPI_Element_Change(&amp;amp;elem, &amp;amp;mask, NULL, NULL, true);&lt;/DIV&gt;</description>
      <pubDate>Wed, 30 Nov 2022 09:56:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Changing-layer-of-a-railing-bug/m-p/230850#M4166</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2022-11-30T09:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Changing layer of a railing, bug?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Changing-layer-of-a-railing-bug/m-p/230851#M4167</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
thank you for pointing out this issue. Unfortunatelly it's a bug in our API.&lt;BR /&gt;
We are working on the fix and hopefully it will be fixed in an upcoming update.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Tibor</description>
      <pubDate>Fri, 10 Aug 2018 14:18:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Changing-layer-of-a-railing-bug/m-p/230851#M4167</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2018-08-10T14:18:24Z</dc:date>
    </item>
  </channel>
</rss>

