<?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 Knowing if a story is empty? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Knowing-if-a-story-is-empty/m-p/233012#M2828</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I want to know if a specific floor has anything in it.&lt;BR /&gt;In other words, a function which gives the number of elements (of any kind) in a specific floor would be a great solution for me.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/DIV&gt;</description>
    <pubDate>Wed, 15 Sep 2021 10:35:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-09-15T10:35:35Z</dc:date>
    <item>
      <title>Knowing if a story is empty?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Knowing-if-a-story-is-empty/m-p/233012#M2828</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I want to know if a specific floor has anything in it.&lt;BR /&gt;In other words, a function which gives the number of elements (of any kind) in a specific floor would be a great solution for me.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Sep 2021 10:35:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Knowing-if-a-story-is-empty/m-p/233012#M2828</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-15T10:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Knowing if a story is empty?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Knowing-if-a-story-is-empty/m-p/233013#M2829</link>
      <description>Ok, this was in a developer forum, so maybe I answered for a very different thing you wanted to know of.&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT size="85"&gt;All layers open. Check renovation filter to show all stages of it.&lt;BR /&gt;
Select arrow tool. Select everything (ctrl/cmd+A)&lt;BR /&gt;
Modify Selected (ctrl/cmd+option+T)&lt;BR /&gt;
&lt;BR /&gt;
A dialog will show you all (selected) elements by type and count.&lt;/FONT&gt;</description>
      <pubDate>Wed, 01 Apr 2020 17:42:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Knowing-if-a-story-is-empty/m-p/233013#M2829</guid>
      <dc:creator>mikas</dc:creator>
      <dc:date>2020-04-01T17:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Knowing if a story is empty?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Knowing-if-a-story-is-empty/m-p/233014#M2830</link>
      <description>You could call &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_Element_GetElemList&lt;E&gt;&lt;/E&gt; with the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;API_ElemFilterFlags &lt;E&gt;&lt;/E&gt; parameter set to &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;APIFilt_OnActFloor&lt;E&gt;&lt;/E&gt;. That will extract a list of elements on the active floor - it empty, you know there aren't any.</description>
      <pubDate>Wed, 01 Apr 2020 20:50:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Knowing-if-a-story-is-empty/m-p/233014#M2830</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2020-04-01T20:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Knowing if a story is empty?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Knowing-if-a-story-is-empty/m-p/233015#M2831</link>
      <description>&lt;BLOCKQUOTE&gt;Ralph wrote:&lt;BR /&gt;
You could call &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_Element_GetElemList&lt;E&gt;&lt;/E&gt; with the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;API_ElemFilterFlags &lt;E&gt;&lt;/E&gt; parameter set to &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;APIFilt_OnActFloor&lt;E&gt;&lt;/E&gt;. That will extract a list of elements on the active floor - it empty, you know there aren't any.
&lt;/BLOCKQUOTE&gt;

that’s an option, but I don’t want to change the active floor every time. My goal is to make this check for every floor and then delete the layouts of floors without elements in it.</description>
      <pubDate>Thu, 02 Apr 2020 10:14:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Knowing-if-a-story-is-empty/m-p/233015#M2831</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-02T10:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Knowing if a story is empty?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Knowing-if-a-story-is-empty/m-p/233016#M2832</link>
      <description>You can restore the active floor after cycling through them all.&lt;BR /&gt;
&lt;BR /&gt;
I think the only other alternative is iterating through all the elements and checking which floor they're on. You can use &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_Element_GetHeader&lt;E&gt;&lt;/E&gt; to avoid loading the whole element.</description>
      <pubDate>Thu, 02 Apr 2020 10:46:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Knowing-if-a-story-is-empty/m-p/233016#M2832</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2020-04-02T10:46:22Z</dc:date>
    </item>
  </channel>
</rss>

