<?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 the all elements in a hotlink? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/how-to-get-the-all-elements-in-a-hotlink/m-p/266435#M3159</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi.&lt;BR /&gt;In Archicad API，is there a function that gets all element of a hotlink?&lt;BR /&gt;I can't seem to find that in the API (sorry, perhaps I'm not looking hard enough)&lt;/DIV&gt;</description>
    <pubDate>Thu, 29 Sep 2022 08:06:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-29T08:06:50Z</dc:date>
    <item>
      <title>how to get the all elements in a hotlink?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/how-to-get-the-all-elements-in-a-hotlink/m-p/266435#M3159</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi.&lt;BR /&gt;In Archicad API，is there a function that gets all element of a hotlink?&lt;BR /&gt;I can't seem to find that in the API (sorry, perhaps I'm not looking hard enough)&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Sep 2022 08:06:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/how-to-get-the-all-elements-in-a-hotlink/m-p/266435#M3159</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-29T08:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the all elements in a hotlink?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/how-to-get-the-all-elements-in-a-hotlink/m-p/266436#M3160</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
There isn't a function like that, but it's easy to write one:
&lt;PRE&gt;GS::Array&amp;lt;API_Guid&amp;gt; GetElementsInHotlink (const API_Guid&amp;amp; hotlinkGuid) {
	GS::Array&amp;lt;API_Guid&amp;gt; elementsInHotlink;

	GS::Array&amp;lt;API_Guid&amp;gt; elemList;
	ACAPI_Element_GetElemList (API_ZombieElemID, &amp;amp;elemList);
	for (const API_Guid&amp;amp; elemGuid : elemList) {
		API_Elem_Head elemHead = {};
		elemHead.guid = elemGuid;
		ACAPI_Element_GetHeader (&amp;amp;elemHead);
		if (elemHead.hotlinkGuid == hotlinkGuid)
			elementsInHotlink.Push (elemGuid);
	}

	return elementsInHotlink;
}&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Oct 2019 08:38:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/how-to-get-the-all-elements-in-a-hotlink/m-p/266436#M3160</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2019-10-24T08:38:56Z</dc:date>
    </item>
  </channel>
</rss>

