<?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 Getting all doors and properties in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Getting-all-doors-and-properties/m-p/393370#M1002</link>
    <description>&lt;P&gt;Hey everyone!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to get all doors from active archicad project and all their properties such as height, width, material etc.) and I have a question.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've read the documentation and I wanted to know if I'm thinking the right way:&lt;/P&gt;
&lt;P&gt;it seems that I need to do certain steps.&lt;/P&gt;
&lt;P&gt;1. get all ids using something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;static GS::Array&amp;lt;API_Guid&amp;gt; GetAllDoorIds(){
    GS::Array&amp;lt;API_Guid&amp;gt; doorGuids;
    GSErrCode err = ACAPI_Element_GetElemList(API_DoorID,&amp;amp;doorGuids);
    if (err != NoError){
        return ;
    }
    return doorGuids;
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. I need to get all ids of properties.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. I have to iterate on every element .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the steps I described above are somehow right, I would kindly ask for someone to assist with what are the names of these functions, because I've been searching for them in&amp;nbsp;&lt;A href="https://archicadapi.graphisoft.com/api-reference" target="_blank" rel="noopener"&gt;api-reference&lt;/A&gt;&amp;nbsp;and, unfortunately,&amp;nbsp; I couldn't find them.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jul 2024 07:36:17 GMT</pubDate>
    <dc:creator>noriksaroyan</dc:creator>
    <dc:date>2024-07-04T07:36:17Z</dc:date>
    <item>
      <title>Getting all doors and properties</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Getting-all-doors-and-properties/m-p/393370#M1002</link>
      <description>&lt;P&gt;Hey everyone!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to get all doors from active archicad project and all their properties such as height, width, material etc.) and I have a question.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've read the documentation and I wanted to know if I'm thinking the right way:&lt;/P&gt;
&lt;P&gt;it seems that I need to do certain steps.&lt;/P&gt;
&lt;P&gt;1. get all ids using something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;static GS::Array&amp;lt;API_Guid&amp;gt; GetAllDoorIds(){
    GS::Array&amp;lt;API_Guid&amp;gt; doorGuids;
    GSErrCode err = ACAPI_Element_GetElemList(API_DoorID,&amp;amp;doorGuids);
    if (err != NoError){
        return ;
    }
    return doorGuids;
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. I need to get all ids of properties.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. I have to iterate on every element .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the steps I described above are somehow right, I would kindly ask for someone to assist with what are the names of these functions, because I've been searching for them in&amp;nbsp;&lt;A href="https://archicadapi.graphisoft.com/api-reference" target="_blank" rel="noopener"&gt;api-reference&lt;/A&gt;&amp;nbsp;and, unfortunately,&amp;nbsp; I couldn't find them.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 07:36:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Getting-all-doors-and-properties/m-p/393370#M1002</guid>
      <dc:creator>noriksaroyan</dc:creator>
      <dc:date>2024-07-04T07:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Getting all doors and properties</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Getting-all-doors-and-properties/m-p/393406#M1003</link>
      <description>&lt;UL&gt;&lt;LI&gt;ACAPI_Goodies&lt;UL&gt;&lt;LI&gt;APIAny_OpenParametersID - starts a parameter operation&lt;/LI&gt;&lt;LI&gt;APIAny_GetActParametersID - gets the parameters of an instance/actual element&lt;/LI&gt;&lt;LI&gt;APIAny_CloseParametersID - ends a parameter operation&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I put any code between open and close parameter inside a "{}" to mark the scope of this operation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also advise you to create a wrapper function that will convert the output of APIAny_GetActParemeters into a std::map or GS::HashTable (or any key-val) where key is the parameter name (API_GetParamsType-&amp;gt;API_AddParType-&amp;gt;name) and value is API_GetParamsType-&amp;gt;API_AddParType. This is to make the parameter/s you need easier to find.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 03:32:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Getting-all-doors-and-properties/m-p/393406#M1003</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2023-07-26T03:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting all doors and properties</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Getting-all-doors-and-properties/m-p/393474#M1004</link>
      <description>&lt;P&gt;I need to store them in json file, so I guess it won't be necessary to wrap it, probably would just store raw data into the json. Thanks for info!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 13:35:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Getting-all-doors-and-properties/m-p/393474#M1004</guid>
      <dc:creator>noriksaroyan</dc:creator>
      <dc:date>2023-07-26T13:35:44Z</dc:date>
    </item>
  </channel>
</rss>

