<?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: Projected Area and Legacy Settings in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Projected-Area-and-Legacy-Settings/m-p/227312#M4936</link>
    <description>How to use this ACAPI_Element_GetSurfaceQuantities? Not in documentation but based on its definition, it accepts list/array of GUID of elements and cover elements, and returns list of element surface quantities.&lt;BR /&gt;
&lt;BR /&gt;
I have the following code (snippet):
&lt;PRE&gt;td_GuidArr elemList;
td_GuidArr coverList;

//... other element types to be considered as "cover"
ACAPI_Element_GetElemList(API_ColumnID, &amp;amp;elemList);
coverList.Push(elemList);
elemList.Clear();
ACAPI_Element_GetElemList(API_WallID, &amp;amp;elemList);
// no need to clear since we'll get wall "exposed" surface area

GS::Array&amp;lt;API_ElemPartSurfaceQuantity&amp;gt; qs;
ACAPI_Element_GetSurfaceQuantities(&amp;amp;elemList, &amp;amp;coverList, &amp;amp;qs);
// print each element's exposed area&lt;/PRE&gt;

What I get is simply the whole surface area, and the covered areas are not deducted.&lt;BR /&gt;
&lt;BR /&gt;
EDIT:&lt;BR /&gt;
td_GuidArr = GS::Array&amp;lt;API_Guid&amp;gt;</description>
    <pubDate>Thu, 30 Jun 2016 07:23:10 GMT</pubDate>
    <dc:creator>ReignBough</dc:creator>
    <dc:date>2016-06-30T07:23:10Z</dc:date>
    <item>
      <title>Projected Area and Legacy Settings</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Projected-Area-and-Legacy-Settings/m-p/227310#M4934</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;When you collect the quantities of composite layers from Walls, using &lt;STRONG&gt;ACAPI_Element_GetSurfaceQuantities&lt;/STRONG&gt; you can get the Projected Area/Exposed Surface from the API.&lt;BR /&gt;&lt;BR /&gt;However, I noticed that if you have a project where the option "&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Use Legacy intersection and Surface methods for model elements" is enabled for your project, the exposed surface stays ZERO.&lt;BR /&gt;&lt;BR /&gt;Is this a bug? Or a limitation? I did not read it in the documentation.&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Jul 2023 13:00:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Projected-Area-and-Legacy-Settings/m-p/227310#M4934</guid>
      <dc:creator>stefan</dc:creator>
      <dc:date>2023-07-13T13:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Projected Area and Legacy Settings</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Projected-Area-and-Legacy-Settings/m-p/227311#M4935</link>
      <description>&lt;BLOCKQUOTE&gt;stefan wrote:&lt;BR /&gt;When you collect the quantities of composite layers from Walls, using &lt;B&gt;ACAPI_Element_GetSurfaceQuantities&lt;/B&gt; you can get the Projected Area/Exposed Surface from the API.&lt;BR /&gt;
&lt;BR /&gt;
However, I noticed that if you have a project where the option "&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Use Legacy intersection and Surface methods for model elements&lt;E&gt;&lt;/E&gt;" is enabled for your project, the exposed surface stays ZERO.&lt;BR /&gt;
&lt;BR /&gt;
Is this a bug? Or a limitation? I did not read it in the documentation.&lt;/BLOCKQUOTE&gt;

Hi Stefan,&lt;BR /&gt;
&lt;BR /&gt;
The special 3D model we use to calculate the exposed areas cannot be created in legacy mode, so you'll always get 0 area.&lt;BR /&gt;
&lt;BR /&gt;
Best, Akos</description>
      <pubDate>Wed, 20 Jan 2016 08:38:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Projected-Area-and-Legacy-Settings/m-p/227311#M4935</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2016-01-20T08:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Projected Area and Legacy Settings</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Projected-Area-and-Legacy-Settings/m-p/227312#M4936</link>
      <description>How to use this ACAPI_Element_GetSurfaceQuantities? Not in documentation but based on its definition, it accepts list/array of GUID of elements and cover elements, and returns list of element surface quantities.&lt;BR /&gt;
&lt;BR /&gt;
I have the following code (snippet):
&lt;PRE&gt;td_GuidArr elemList;
td_GuidArr coverList;

//... other element types to be considered as "cover"
ACAPI_Element_GetElemList(API_ColumnID, &amp;amp;elemList);
coverList.Push(elemList);
elemList.Clear();
ACAPI_Element_GetElemList(API_WallID, &amp;amp;elemList);
// no need to clear since we'll get wall "exposed" surface area

GS::Array&amp;lt;API_ElemPartSurfaceQuantity&amp;gt; qs;
ACAPI_Element_GetSurfaceQuantities(&amp;amp;elemList, &amp;amp;coverList, &amp;amp;qs);
// print each element's exposed area&lt;/PRE&gt;

What I get is simply the whole surface area, and the covered areas are not deducted.&lt;BR /&gt;
&lt;BR /&gt;
EDIT:&lt;BR /&gt;
td_GuidArr = GS::Array&amp;lt;API_Guid&amp;gt;</description>
      <pubDate>Thu, 30 Jun 2016 07:23:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Projected-Area-and-Legacy-Settings/m-p/227312#M4936</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2016-06-30T07:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Projected Area and Legacy Settings</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Projected-Area-and-Legacy-Settings/m-p/227313#M4937</link>
      <description>Here is a sample of a column "touching" a wall and the results of Scheme Settings and &lt;FONT color="#808080"&gt;ACAPI_Element_GetSurfaceQuantities()&lt;/FONT&gt;.&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;EDIT&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
BTW, this function is working fine if the elements intersect each other.&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/16554i25DBAD568899E09D/image-size/large?v=v2&amp;amp;px=999" border="0" alt="column touching wall.png" title="column touching wall.png" /&gt;</description>
      <pubDate>Wed, 19 Oct 2016 06:10:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Projected-Area-and-Legacy-Settings/m-p/227313#M4937</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2016-10-19T06:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Projected Area and Legacy Settings</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Projected-Area-and-Legacy-Settings/m-p/227314#M4938</link>
      <description>Here's another problem on "Exposed Area" using API.</description>
      <pubDate>Fri, 21 Jul 2017 11:52:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Projected-Area-and-Legacy-Settings/m-p/227314#M4938</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2017-07-21T11:52:30Z</dc:date>
    </item>
  </channel>
</rss>

