<?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: Differentiate between Element Group and Hotlink Group? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-Differentiate-between-Element-and-Hotlink-Group/m-p/265711#M5004</link>
    <description>&lt;BLOCKQUOTE&gt;Akos wrote:&lt;BR /&gt;
Hotlinked elements also have the hotlinkGuid member set in their element header, whereas user-grouped elements don't.&lt;BR /&gt;
&lt;BR /&gt;
Best, Ákos&lt;/BLOCKQUOTE&gt;

Yes, but what I'm having problems with is when it is BOTH grouped and hotlinked. For example:&lt;BR /&gt;
1) Elems were user-grouped on its original project (lets say its P1)&lt;BR /&gt;
2) On another project, P2, the project P1 is then hotlinked&lt;BR /&gt;
3) On P2, elems will now have both valid hotlinkGuid and groupGuid in their headers.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Anyway, I've managed to get a workaround for this issue by comparing the number of levels of the group tree (using &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;groupGuid&lt;E&gt;&lt;/E&gt; and a while-looped &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_ElementGroup_GetGroup&lt;E&gt;&lt;/E&gt;) and the level number of the hotlink node (using &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;hotlinkGuid&lt;E&gt;&lt;/E&gt; and ACAPI_Database() &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;APIDb_GetHotlinkRootNodeGuidID&lt;E&gt;&lt;/E&gt;, &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;APIDb_GetHotlinkNodeTreeID&lt;E&gt;&lt;/E&gt;, etc).&lt;BR /&gt;
If they're equal, then its a normal hotlinked elem. If group level is greater, means the elem is user-grouped (if the difference is 1 then it's user-grouped only once, greater than 1 means it's user-grouped multiple times).</description>
    <pubDate>Tue, 29 Mar 2016 06:53:31 GMT</pubDate>
    <dc:creator>Erenford</dc:creator>
    <dc:date>2016-03-29T06:53:31Z</dc:date>
    <item>
      <title>[SOLVED] Differentiate between Element and Hotlink Group?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-Differentiate-between-Element-and-Hotlink-Group/m-p/265709#M5002</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;How do you tell if the element is grouped by the user or is merely just inside a hotlink module? What I use is if there is a &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;groupGuid value present although hotlinked elems also have a &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;groupGuid and are being considered by &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_ElementGroup_GetGroupedElems as a legit group even if they weren't grouped by the user and are just part of a hotlink. &lt;BR /&gt;&lt;BR /&gt;Using &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_ElementGroup_GetGroupedElems(groupGuid):&lt;BR /&gt;- Grouped elems (hotlinked or not) returns their immediate elems =&amp;gt; this is what I need&lt;BR /&gt;- Non-grouped non-hotlinked elems have no groupGuid thus ignored =&amp;gt; also ok&lt;BR /&gt;- Non-grouped hotlinked elems have a groupGuid and will return immediate elems (all fellow hotlinked elems) =&amp;gt; not ok, I don't need this&lt;BR /&gt;&lt;BR /&gt;Basically what I need are elements that are grouped only by the user regardless if its in a hotlink module or not, and any non-grouped elems (hotlinked and otherwise) should be ignored. Any Ideas?&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Jul 2023 12:30:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-Differentiate-between-Element-and-Hotlink-Group/m-p/265709#M5002</guid>
      <dc:creator>Erenford</dc:creator>
      <dc:date>2023-07-13T12:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between Element Group and Hotlink Group?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-Differentiate-between-Element-and-Hotlink-Group/m-p/265710#M5003</link>
      <description>&lt;BLOCKQUOTE&gt;Erenford wrote:&lt;BR /&gt;How do you tell if the element is grouped by the user or is merely just inside a hotlink module? What I use is if there is a &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;groupGuid&lt;E&gt;&lt;/E&gt; value present although hotlinked elems also have a &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;groupGuid&lt;E&gt;&lt;/E&gt; and are being considered by &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_ElementGroup_GetGroupedElems&lt;E&gt;&lt;/E&gt; as a legit group even if they weren't grouped by the user and are just part of a hotlink. &lt;BR /&gt;
&lt;BR /&gt;
Using &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_ElementGroup_GetGroupedElems(groupGuid)&lt;E&gt;&lt;/E&gt;:&lt;BR /&gt;
- Grouped elems (hotlinked or not) returns their immediate elems =&amp;gt; this is what I need&lt;BR /&gt;
- Non-grouped non-hotlinked elems have no groupGuid thus ignored =&amp;gt; also ok&lt;BR /&gt;
- Non-grouped hotlinked elems have a groupGuid and will return immediate elems (all fellow hotlinked elems) =&amp;gt; not ok, I don't need this&lt;BR /&gt;
&lt;BR /&gt;
Basically what I need are elements that are grouped only by the user regardless if its in a hotlink module or not, and any non-grouped elems (hotlinked and otherwise) should be ignored. Any Ideas?&lt;/BLOCKQUOTE&gt;

Hotlinked elements also have the hotlinkGuid member set in their element header, whereas user-grouped elements don't.&lt;BR /&gt;
&lt;BR /&gt;
Best, Ákos</description>
      <pubDate>Fri, 18 Mar 2016 17:45:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-Differentiate-between-Element-and-Hotlink-Group/m-p/265710#M5003</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2016-03-18T17:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiate between Element Group and Hotlink Group?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-Differentiate-between-Element-and-Hotlink-Group/m-p/265711#M5004</link>
      <description>&lt;BLOCKQUOTE&gt;Akos wrote:&lt;BR /&gt;
Hotlinked elements also have the hotlinkGuid member set in their element header, whereas user-grouped elements don't.&lt;BR /&gt;
&lt;BR /&gt;
Best, Ákos&lt;/BLOCKQUOTE&gt;

Yes, but what I'm having problems with is when it is BOTH grouped and hotlinked. For example:&lt;BR /&gt;
1) Elems were user-grouped on its original project (lets say its P1)&lt;BR /&gt;
2) On another project, P2, the project P1 is then hotlinked&lt;BR /&gt;
3) On P2, elems will now have both valid hotlinkGuid and groupGuid in their headers.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Anyway, I've managed to get a workaround for this issue by comparing the number of levels of the group tree (using &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;groupGuid&lt;E&gt;&lt;/E&gt; and a while-looped &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_ElementGroup_GetGroup&lt;E&gt;&lt;/E&gt;) and the level number of the hotlink node (using &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;hotlinkGuid&lt;E&gt;&lt;/E&gt; and ACAPI_Database() &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;APIDb_GetHotlinkRootNodeGuidID&lt;E&gt;&lt;/E&gt;, &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;APIDb_GetHotlinkNodeTreeID&lt;E&gt;&lt;/E&gt;, etc).&lt;BR /&gt;
If they're equal, then its a normal hotlinked elem. If group level is greater, means the elem is user-grouped (if the difference is 1 then it's user-grouped only once, greater than 1 means it's user-grouped multiple times).</description>
      <pubDate>Tue, 29 Mar 2016 06:53:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/SOLVED-Differentiate-between-Element-and-Hotlink-Group/m-p/265711#M5004</guid>
      <dc:creator>Erenford</dc:creator>
      <dc:date>2016-03-29T06:53:31Z</dc:date>
    </item>
  </channel>
</rss>

