<?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 How to get only placed elements guids? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-only-placed-elements-guids/m-p/223406#M3715</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi guys,&lt;BR /&gt;&lt;BR /&gt;I am using ACAPI_Element_GetElemList but none of the filters helps me get the guids of only the placed elements. On a new project the function gets 16 guids and if I place 2 elements then I get 18 guids. I thought this filter
&lt;PRE&gt;ACAPI_Element_GetElemList (API_ObjectID, &amp;amp;elemListGuid, APIFilt_OnActLayout)&lt;/PRE&gt;
was the right one but it turned out none of them is right.&lt;BR /&gt;&lt;BR /&gt;Is it possible to do what I want here?&lt;/DIV&gt;</description>
    <pubDate>Tue, 04 Oct 2022 14:33:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-04T14:33:02Z</dc:date>
    <item>
      <title>How to get only placed elements guids?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-only-placed-elements-guids/m-p/223406#M3715</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi guys,&lt;BR /&gt;&lt;BR /&gt;I am using ACAPI_Element_GetElemList but none of the filters helps me get the guids of only the placed elements. On a new project the function gets 16 guids and if I place 2 elements then I get 18 guids. I thought this filter
&lt;PRE&gt;ACAPI_Element_GetElemList (API_ObjectID, &amp;amp;elemListGuid, APIFilt_OnActLayout)&lt;/PRE&gt;
was the right one but it turned out none of them is right.&lt;BR /&gt;&lt;BR /&gt;Is it possible to do what I want here?&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Oct 2022 14:33:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-only-placed-elements-guids/m-p/223406#M3715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-04T14:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get only placed elements guids?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-only-placed-elements-guids/m-p/223407#M3716</link>
      <description>&lt;BLOCKQUOTE&gt;n.mihaylov wrote:&lt;BR /&gt;was the right one but it turned out none of them is right.
&lt;/BLOCKQUOTE&gt;

It's a good filter for limiting selection to the active floor. I used it a lot with success. Never had more GUIDs.</description>
      <pubDate>Tue, 14 May 2019 12:27:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-only-placed-elements-guids/m-p/223407#M3716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-14T12:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get only placed elements guids?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-only-placed-elements-guids/m-p/223408#M3717</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
ACAPI_Element_GetElemList returns the placed elements without any filter from the current database.&lt;BR /&gt;
It returns 16 guids for a new project because a new project already can contain placed elements (for example elevations are coming from the template).&lt;BR /&gt;
You can filter elements with 3D representation by using the APIFilt_In3D, this could be useful to filter out the elevations for example.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Tibor</description>
      <pubDate>Tue, 14 May 2019 12:35:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-only-placed-elements-guids/m-p/223408#M3717</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2019-05-14T12:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get only placed elements guids?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-only-placed-elements-guids/m-p/223409#M3718</link>
      <description>&lt;BLOCKQUOTE&gt;Tibor wrote:&lt;BR /&gt;returns the placed elements without any filter from the current database&lt;/BLOCKQUOTE&gt;

Is it working like this with API_ObjectID? Shouldn't you pass Zombie type to get all types of elements in db?</description>
      <pubDate>Tue, 14 May 2019 12:44:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-only-placed-elements-guids/m-p/223409#M3718</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-14T12:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get only placed elements guids?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-only-placed-elements-guids/m-p/223410#M3719</link>
      <description>&lt;BLOCKQUOTE&gt;kzaremba wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;Tibor wrote:&lt;BR /&gt;returns the placed elements without any filter from the current database&lt;/BLOCKQUOTE&gt;

Is it working like this with API_ObjectID? Shouldn't you pass Zombie type to get all types of elements in db?
&lt;/BLOCKQUOTE&gt;

Yes, it will return elements with all types only when using API_ZombieElemID.&lt;BR /&gt;
&lt;BR /&gt;
But the point is that if you create a new project from a template then it will already contain elements before you placed anything (it depends on your template).</description>
      <pubDate>Tue, 14 May 2019 12:50:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-only-placed-elements-guids/m-p/223410#M3719</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2019-05-14T12:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get only placed elements guids?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-only-placed-elements-guids/m-p/223411#M3720</link>
      <description>A little bit strange but using APIFilt_In3D I have to change the view to 3D every time I place a new element otherwise this element is not counted and returned by the function. The elements I place are 3D.&lt;BR /&gt;
&lt;BR /&gt;
Anyway, this should do the trick because after placing the objects the user should change to 3D view in order to fix the objects position one according to another  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
If there is nothing I can improve for now, thanks, guys!</description>
      <pubDate>Tue, 14 May 2019 13:09:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-only-placed-elements-guids/m-p/223411#M3720</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-14T13:09:44Z</dc:date>
    </item>
  </channel>
</rss>

