<?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 Return an element by a property in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Return-an-element-by-a-property/m-p/650786#M10113</link>
    <description>&lt;P&gt;Hello. I wonder if there is an option somehow to retrieve a reference or a pointer to an existing element placed in the Archicad space by using its property or something like that. Note that I do not want to select it and retrieve the information. Moreover, I want to do it vice versa - use some property to find the element, move the camera to it and then select it via API. Have somebody done that before or do somebody knows what API functions is best to use for that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks 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, 14 Feb 2025 08:24:57 GMT</pubDate>
    <dc:creator>Emkave</dc:creator>
    <dc:date>2025-02-14T08:24:57Z</dc:date>
    <item>
      <title>Return an element by a property</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Return-an-element-by-a-property/m-p/650786#M10113</link>
      <description>&lt;P&gt;Hello. I wonder if there is an option somehow to retrieve a reference or a pointer to an existing element placed in the Archicad space by using its property or something like that. Note that I do not want to select it and retrieve the information. Moreover, I want to do it vice versa - use some property to find the element, move the camera to it and then select it via API. Have somebody done that before or do somebody knows what API functions is best to use for that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks 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, 14 Feb 2025 08:24:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Return-an-element-by-a-property/m-p/650786#M10113</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2025-02-14T08:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Return an element by a property</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Return-an-element-by-a-property/m-p/652494#M10138</link>
      <description>&lt;P&gt;Hi, I'm not sure the purpose you'd like to do. Do you think it makes sense to do the following steps?&lt;BR /&gt;1) Get all the placed elements and check its property, pickup those which meets your conditions.&lt;BR /&gt;2) Get those element's geometry if you need and select or highlight them.&lt;BR /&gt;3) Show 3D window, like press F5.&lt;BR /&gt;I think those can be done via API.&lt;/P&gt;
&lt;P&gt;HTH.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 08:04:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Return-an-element-by-a-property/m-p/652494#M10138</guid>
      <dc:creator>Hiromichi Shinkawa</dc:creator>
      <dc:date>2025-02-20T08:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Return an element by a property</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Return-an-element-by-a-property/m-p/652538#M10141</link>
      <description>&lt;P&gt;The idea is that I will create a request, use some GUID string or some other property as an input, and by using that input I will select the element and move the camera view to that element. I wanna do that using the API.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 12:42:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Return-an-element-by-a-property/m-p/652538#M10141</guid>
      <dc:creator>Emkave</dc:creator>
      <dc:date>2025-02-20T12:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Return an element by a property</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Return-an-element-by-a-property/m-p/653022#M10152</link>
      <description>&lt;P&gt;Hi, I think it can be done by API. If you already knew GUID, then you only need to select the element and call show it in 3D.&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;ACAPI_Selection_Select&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;then call&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;ACAPI_View_ShowSelectionIn3D()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;For property, you need to check which element meet your input using (&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;ACAPI_Element_GetProperty...) functions&lt;/SPAN&gt;&lt;SPAN&gt;, then get the guid.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Please check the API Examples code.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;HTH.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Feb 2025 06:38:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Return-an-element-by-a-property/m-p/653022#M10152</guid>
      <dc:creator>Hiromichi Shinkawa</dc:creator>
      <dc:date>2025-02-25T06:38:15Z</dc:date>
    </item>
  </channel>
</rss>

