<?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: Get object's properties in Archicad 26 and 28 in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-object-s-properties-in-Archicad-26-and-28/m-p/640071#M9972</link>
    <description>&lt;P&gt;Do you want this information solely for objects, i.e. instances of a library part placed in a project? Or potentially for other elements like walls, slabs etc?&lt;/P&gt;</description>
    <pubDate>Mon, 18 Nov 2024 14:09:18 GMT</pubDate>
    <dc:creator>Ralph Wessel</dc:creator>
    <dc:date>2024-11-18T14:09:18Z</dc:date>
    <item>
      <title>Get object's properties in Archicad 26 and 28</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-object-s-properties-in-Archicad-26-and-28/m-p/639700#M9963</link>
      <description>&lt;P&gt;Hello everyone. I am stuck with one issue related to extracting elements' data like width, height, length and so on.&lt;BR /&gt;I have been looking around in Archicad 28 API, however, some functions are about to be deleted, or deprecated, or replaced, or some do not have example to see how it works...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have object's guid and libind, but I am not sure which functions to use.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I'd like to know your ways of extracting such information from a selected object in Archicad, and I'd be glad if you would provide the ways to do that for AC 26 and 28.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. I do not want to retrieve IFC parameters.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you a lot in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="grey"&gt;Operating system used: &lt;EM&gt;Windows 11&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 00:47:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-object-s-properties-in-Archicad-26-and-28/m-p/639700#M9963</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2024-11-15T00:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get object's properties in Archicad 26 and 28</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-object-s-properties-in-Archicad-26-and-28/m-p/640045#M9968</link>
      <description>&lt;P&gt;Do you want he width, height etc for a specific type of element, e.g. a wall, slab etc, or a generic method for any kind of element? if you just need the bounding box of any element you could use&amp;nbsp;&lt;A href="https://graphisoft.github.io/archicad-api-devkit/group___element.html#ga23c67507288943b19e8edfbd7e1c3f88" target="_self"&gt;ACAPI_Element_CalcBounds&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 11:18:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-object-s-properties-in-Archicad-26-and-28/m-p/640045#M9968</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2024-11-18T11:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get object's properties in Archicad 26 and 28</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-object-s-properties-in-Archicad-26-and-28/m-p/640059#M9969</link>
      <description>&lt;P&gt;Hi. Yes, I am interested in stuff you listed in the first question!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 13:23:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-object-s-properties-in-Archicad-26-and-28/m-p/640059#M9969</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2024-11-18T13:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get object's properties in Archicad 26 and 28</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-object-s-properties-in-Archicad-26-and-28/m-p/640060#M9970</link>
      <description>&lt;P&gt;You mentioned that there are some API functions have been deleted/deprecated/etc. Are these functions you have already been using? If so, it would helpful to see what you have already done - it might help me understand what you want to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, the simplest approach would be to directly use the data in&amp;nbsp;API_Element to extract the data you want. For example, if you have a wall in an&amp;nbsp;API_Element structure like so:&lt;/P&gt;
&lt;P&gt;API_Element element;&lt;/P&gt;
&lt;P&gt;…you could obtain/calculate the following:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;length using the wall origin (element.wall.begC) &amp;nbsp;and end point&amp;nbsp;(element.wall.endC);&lt;/LI&gt;
&lt;LI&gt;thickness using&amp;nbsp;element.wall.thickness;&lt;/LI&gt;
&lt;LI&gt;height using element.wall.height;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Does this help?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 13:33:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-object-s-properties-in-Archicad-26-and-28/m-p/640060#M9970</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2024-11-18T13:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get object's properties in Archicad 26 and 28</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-object-s-properties-in-Archicad-26-and-28/m-p/640066#M9971</link>
      <description>&lt;P&gt;Yes, some functions like: ACAPI_LibraryPart_GetParams() are marked as "&lt;EM&gt;Legacy function - to be deleted in future versions, use ACAPI::LM::GSMObject::GetParameters instead&lt;/EM&gt;".&lt;BR /&gt;&lt;BR /&gt;I went to check for "&lt;EM&gt;ACAPI::LM::GSMObject::GetParameters&lt;/EM&gt;" and found this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_0-1731937106999.png" style="width: 799px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/79616iBFE93BAAC9EA33BC/image-dimensions/799x132?v=v2" width="799" height="132" role="button" title="Emkave_0-1731937106999.png" alt="Emkave_0-1731937106999.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;So far I checked out these functions:&lt;BR /&gt;ACAPI_LibraryPart_GetSection(),&lt;BR /&gt;ACAPI_Element_GetComponents(),&lt;BR /&gt;ACAPI_Element_GetMemo(),&lt;BR /&gt;ACAPI_LibraryPart_GetParamValues(),&lt;BR /&gt;API_Element(),&lt;BR /&gt;ACAPI_LibraryPart_GetActParameters()&lt;BR /&gt;&lt;BR /&gt;But none of them gave me these information:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emkave_2-1731938219599.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/79618i8FE76A76891980F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Emkave_2-1731938219599.png" alt="Emkave_2-1731938219599.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I wonder if you managed to extract these data somehow&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Nov 2024 09:10:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-object-s-properties-in-Archicad-26-and-28/m-p/640066#M9971</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2024-11-19T09:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get object's properties in Archicad 26 and 28</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-object-s-properties-in-Archicad-26-and-28/m-p/640071#M9972</link>
      <description>&lt;P&gt;Do you want this information solely for objects, i.e. instances of a library part placed in a project? Or potentially for other elements like walls, slabs etc?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 14:09:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-object-s-properties-in-Archicad-26-and-28/m-p/640071#M9972</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2024-11-18T14:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get object's properties in Archicad 26 and 28</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-object-s-properties-in-Archicad-26-and-28/m-p/640072#M9973</link>
      <description>&lt;P&gt;Yes, for now only the instances that are placed in a project.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 14:10:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-object-s-properties-in-Archicad-26-and-28/m-p/640072#M9973</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2024-11-18T14:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get object's properties in Archicad 26 and 28</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-object-s-properties-in-Archicad-26-and-28/m-p/640084#M9974</link>
      <description>&lt;P&gt;Have you looked at the functions associated with&amp;nbsp;ACAPI_LibraryPart_OpenParameters? Take a look at the example project 'Element_Test', specifically the function 'Do_ShowSymbolHotspots' in 'Element_Snippets.cpp'. This uses 'ACAPI_LibraryPart_OpenParameters', 'ACAPI_LibraryPart_GetActParameters' etc&lt;/P&gt;
&lt;P&gt;The documentation for&amp;nbsp;&lt;A href="https://graphisoft.github.io/archicad-api-devkit/group___library_part.html#gacacd08acb7d5a1325838036d04d9929e" target="_self"&gt;ACAPI_LibraryPart_OpenParameters&lt;/A&gt; also has some sample code.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 14:40:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-object-s-properties-in-Archicad-26-and-28/m-p/640084#M9974</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2024-11-18T14:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get object's properties in Archicad 26 and 28</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-object-s-properties-in-Archicad-26-and-28/m-p/641798#M10014</link>
      <description>&lt;P&gt;Hi. I think I have found the way to solve the issue by iterating the parameter array that is stored in the variable that you get from ACAPI_LibraryPart_GetActParameters(). Thanks for the help very much!&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2024 16:50:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-object-s-properties-in-Archicad-26-and-28/m-p/641798#M10014</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2024-11-30T16:50:11Z</dc:date>
    </item>
  </channel>
</rss>

