<?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 Creating Polygonal opening on a wall in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Creating-Polygonal-opening-on-a-wall/m-p/574926#M8844</link>
    <description>&lt;P&gt;Hello team,&lt;/P&gt;&lt;P&gt;We are trying to create a polygon-shaped opening through Add-On. We were able to create a square opening but unable to create a polygon-shaped opening. We did some reverse engineering ie. Tried to fetch the element with type OpeningID after drawing one and inspected the element but could not see anything that would define the points of the polygon. Attached is the screenshot of the values that we could observe of the Opening element(there are two screenshots) and the model that we are inspecting. Is it something that has support in Add-On? We also noticed that the field &lt;STRONG&gt;extrusionGeometryData.customBasePolygon&lt;/STRONG&gt;&amp;nbsp;is marked as&amp;nbsp;&lt;U&gt;&lt;EM&gt;Reserved for future use.&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;GSErrCode GetOpeningDetails() {
    GSErrCode err = NoError;
    GS::Array&amp;lt;API_Guid&amp;gt; elemList;
    ACAPI_Element_GetElemList (API_OpeningID, &amp;amp;elemList);
    for (const API_Guid&amp;amp; guid : elemList) {
        API_Element element = {};
        API_ElementMemo memo;
        BNZeroMemory (&amp;amp;memo, sizeof (API_ElementMemo));
        element.header.guid = guid;
        err = ACAPI_Element_Get (&amp;amp;element);
        if (err != NoError) {
            std::cout &amp;lt;&amp;lt; "Error when trying to get element" &amp;lt;&amp;lt; std::endl;
            continue;
        }
        err = ACAPI_Element_GetMemo(guid, &amp;amp;memo);
        if (err != NoError) {
            std::cout &amp;lt;&amp;lt; "Error when trying to get element memo" &amp;lt;&amp;lt; std::endl;
            continue;
        }
    }
    return err;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="openingimage.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/57080iBA665A1732C4555F/image-size/large?v=v2&amp;amp;px=999" role="button" title="openingimage.png" alt="openingimage.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="debug2.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/57081i284CC5F25BD34EA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="debug2.png" alt="debug2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="debug1.png" style="width: 799px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/57082i4D0F6B612D24F95C/image-size/large?v=v2&amp;amp;px=999" role="button" title="debug1.png" alt="debug1.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Tue, 17 Sep 2024 11:20:26 GMT</pubDate>
    <dc:creator>kency</dc:creator>
    <dc:date>2024-09-17T11:20:26Z</dc:date>
    <item>
      <title>Creating Polygonal opening on a wall</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Creating-Polygonal-opening-on-a-wall/m-p/574926#M8844</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;&lt;P&gt;We are trying to create a polygon-shaped opening through Add-On. We were able to create a square opening but unable to create a polygon-shaped opening. We did some reverse engineering ie. Tried to fetch the element with type OpeningID after drawing one and inspected the element but could not see anything that would define the points of the polygon. Attached is the screenshot of the values that we could observe of the Opening element(there are two screenshots) and the model that we are inspecting. Is it something that has support in Add-On? We also noticed that the field &lt;STRONG&gt;extrusionGeometryData.customBasePolygon&lt;/STRONG&gt;&amp;nbsp;is marked as&amp;nbsp;&lt;U&gt;&lt;EM&gt;Reserved for future use.&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;GSErrCode GetOpeningDetails() {
    GSErrCode err = NoError;
    GS::Array&amp;lt;API_Guid&amp;gt; elemList;
    ACAPI_Element_GetElemList (API_OpeningID, &amp;amp;elemList);
    for (const API_Guid&amp;amp; guid : elemList) {
        API_Element element = {};
        API_ElementMemo memo;
        BNZeroMemory (&amp;amp;memo, sizeof (API_ElementMemo));
        element.header.guid = guid;
        err = ACAPI_Element_Get (&amp;amp;element);
        if (err != NoError) {
            std::cout &amp;lt;&amp;lt; "Error when trying to get element" &amp;lt;&amp;lt; std::endl;
            continue;
        }
        err = ACAPI_Element_GetMemo(guid, &amp;amp;memo);
        if (err != NoError) {
            std::cout &amp;lt;&amp;lt; "Error when trying to get element memo" &amp;lt;&amp;lt; std::endl;
            continue;
        }
    }
    return err;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="openingimage.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/57080iBA665A1732C4555F/image-size/large?v=v2&amp;amp;px=999" role="button" title="openingimage.png" alt="openingimage.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="debug2.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/57081i284CC5F25BD34EA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="debug2.png" alt="debug2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="debug1.png" style="width: 799px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/57082i4D0F6B612D24F95C/image-size/large?v=v2&amp;amp;px=999" role="button" title="debug1.png" alt="debug1.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 17 Sep 2024 11:20:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Creating-Polygonal-opening-on-a-wall/m-p/574926#M8844</guid>
      <dc:creator>kency</dc:creator>
      <dc:date>2024-09-17T11:20:26Z</dc:date>
    </item>
  </channel>
</rss>

