<?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: How to get zone's points in ArchiCAD API? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-zone-s-points-in-ArchiCAD-API/m-p/578805#M8956</link>
    <description>&lt;P data-renderer-start-pos="1"&gt;Hi,&lt;/P&gt;
&lt;P data-renderer-start-pos="6"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-renderer-start-pos="6"&gt;Please take a look at the Do_DumpZone() function in Element_Snippets.cpp (Element_Test example). The ACAPI_Database(APIDb_RoomReductionsID, …) code shows that at the end of that function.&lt;/P&gt;
&lt;P data-renderer-start-pos="6"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-renderer-start-pos="6"&gt;Best, Akos&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2023 09:50:40 GMT</pubDate>
    <dc:creator>Akos Somorjai</dc:creator>
    <dc:date>2023-12-04T09:50:40Z</dc:date>
    <item>
      <title>How to get zone's points in ArchiCAD API?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-zone-s-points-in-ArchiCAD-API/m-p/578114#M8930</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I'm trying to create Fills based on zone points.&lt;/P&gt;
&lt;P&gt;Everything is okay with the code below when I get the zone points and create Fill according to those points:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;LI-CODE lang="cpp"&gt;list&amp;lt;Point&amp;gt;* points = GetPointsInElement(eleZone, eleZone.zone.poly);

//-----------------------------------------------------------------

list&amp;lt;Point&amp;gt;* GetPointsInElement(API_Element element, API_Polygon poly)
{
API_ElementMemo memo{};

GSErrCode err = ACAPI_Element_GetMemo(element.header.guid, &amp;amp;memo);

if (err != NoError) throw;

list&amp;lt;Point&amp;gt;* points = new list&amp;lt;Point&amp;gt;();

if (memo.coords) {

for (Int32 i = 1; i &amp;lt;= poly.nCoords; i++) {
API_Coord point = (*memo.coords)[i];
points-&amp;gt;push_back(Point(point.x, point.y, 0));
}
}
ACAPI_DisposeElemMemoHdls(&amp;amp;memo);
delete points;
return (NULL);
}
//-------------------------&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;But when the zone's calculated area is different from zone's Measured Area (like the image below),&amp;nbsp;then the shapes of Fill and Zone are no longer the same.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The border of the Zone is a red line between the walls (like the image below), but when creating a Fill based on the points of the zone, the border of the Fill is a blue line and lies inside the walls.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Do you know where I'm wrong? And can you help me solve this problem?&lt;/DIV&gt;
&lt;DIV&gt;Thank you very much.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="received_884534646716334.png" style="width: 800px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/49870iC809FFC300BBEEDC/image-dimensions/800x785?v=v2" width="800" height="785" role="button" title="received_884534646716334.png" alt="received_884534646716334.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="received_1551925112013654.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/49871iE6851355B0F1C79E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="received_1551925112013654.png" alt="received_1551925112013654.png" /&gt;&lt;/span&gt;
&lt;P&gt; &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:40:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-zone-s-points-in-ArchiCAD-API/m-p/578114#M8930</guid>
      <dc:creator>Tran Thanh Lo</dc:creator>
      <dc:date>2024-09-16T12:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get zone's points in ArchiCAD API?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-zone-s-points-in-ArchiCAD-API/m-p/578125#M8931</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please look at the `additionalPolyCoords` member of the element memo.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best, Akos&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 17:04:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-zone-s-points-in-ArchiCAD-API/m-p/578125#M8931</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2023-11-29T17:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get zone's points in ArchiCAD API?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-zone-s-points-in-ArchiCAD-API/m-p/578127#M8932</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/7122"&gt;@Akos Somorjai&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I tried it, But the result isn't right.&amp;nbsp;all coordinates equal zero.&lt;/P&gt;
&lt;P&gt;Please help me.&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="received_1039981480657253.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/49872i2DC6B35F45F38CE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="received_1039981480657253.png" alt="received_1039981480657253.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 02:22:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-zone-s-points-in-ArchiCAD-API/m-p/578127#M8932</guid>
      <dc:creator>Tran Thanh Lo</dc:creator>
      <dc:date>2023-11-30T02:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get zone's points in ArchiCAD API?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-zone-s-points-in-ArchiCAD-API/m-p/578207#M8934</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/7122"&gt;@Akos Somorjai&lt;/a&gt;&amp;nbsp;&amp;nbsp;I also got the same error. Can you help me ?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 03:34:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-zone-s-points-in-ArchiCAD-API/m-p/578207#M8934</guid>
      <dc:creator>Linh</dc:creator>
      <dc:date>2023-11-30T03:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get zone's points in ArchiCAD API?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-zone-s-points-in-ArchiCAD-API/m-p/578805#M8956</link>
      <description>&lt;P data-renderer-start-pos="1"&gt;Hi,&lt;/P&gt;
&lt;P data-renderer-start-pos="6"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-renderer-start-pos="6"&gt;Please take a look at the Do_DumpZone() function in Element_Snippets.cpp (Element_Test example). The ACAPI_Database(APIDb_RoomReductionsID, …) code shows that at the end of that function.&lt;/P&gt;
&lt;P data-renderer-start-pos="6"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-renderer-start-pos="6"&gt;Best, Akos&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 09:50:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-zone-s-points-in-ArchiCAD-API/m-p/578805#M8956</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2023-12-04T09:50:40Z</dc:date>
    </item>
  </channel>
</rss>

