<?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 Get Hotlink Rotation? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-Hotlink-Rotation/m-p/209506#M5346</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hello, how do I get the hotlink orientation in the module settings? I'm assuming it's in the Group element (API_GroupType) of the hotlink (in group.hlmAngle):&lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;std::vector&amp;lt;API_Element&amp;gt; elemList;
GetElements(elemList, API_HotlinkID); //just a function to get all elements from the given type
size_t count = elemList.size();
for (short i = 0; i &amp;lt; count; i++)
{
	API_Element&amp;amp; elem_hotlink = elemList&lt;I&gt;;
	std::string name = elem_hotlink.hotlink.info;
	if (name != "OFC_TOWER") //filter
		continue;

	API_Element elem_group;
	BNZeroMemory(&amp;amp;elem_group, sizeof(API_Element));
	elem_group.header.typeID = API_GroupID;
	elem_group.header.guid = elem_hotlink.hotlink.hotlinkGroupGuid;
	err = ACAPI_Element_Get(&amp;amp;elem_group);
	if (err != NoError)
	{
		WriteReport("Has an error %d", err);
		continue;
	}
	WriteReport("angle: %f", elem_group.group.hlmAngle);
}
&lt;/I&gt;&lt;/PRE&gt;
When I ran the code, "elem_group" doesn't have a value. Anyway to do this? This is in AC 17 by the way.&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/67379iD46462A0619CC8DF/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Hotlink_module.png" title="Hotlink_module.png" /&gt;</description>
    <pubDate>Tue, 01 Aug 2023 12:10:08 GMT</pubDate>
    <dc:creator>Erenford</dc:creator>
    <dc:date>2023-08-01T12:10:08Z</dc:date>
    <item>
      <title>Get Hotlink Rotation?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-Hotlink-Rotation/m-p/209506#M5346</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello, how do I get the hotlink orientation in the module settings? I'm assuming it's in the Group element (API_GroupType) of the hotlink (in group.hlmAngle):&lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;std::vector&amp;lt;API_Element&amp;gt; elemList;
GetElements(elemList, API_HotlinkID); //just a function to get all elements from the given type
size_t count = elemList.size();
for (short i = 0; i &amp;lt; count; i++)
{
	API_Element&amp;amp; elem_hotlink = elemList&lt;I&gt;;
	std::string name = elem_hotlink.hotlink.info;
	if (name != "OFC_TOWER") //filter
		continue;

	API_Element elem_group;
	BNZeroMemory(&amp;amp;elem_group, sizeof(API_Element));
	elem_group.header.typeID = API_GroupID;
	elem_group.header.guid = elem_hotlink.hotlink.hotlinkGroupGuid;
	err = ACAPI_Element_Get(&amp;amp;elem_group);
	if (err != NoError)
	{
		WriteReport("Has an error %d", err);
		continue;
	}
	WriteReport("angle: %f", elem_group.group.hlmAngle);
}
&lt;/I&gt;&lt;/PRE&gt;
When I ran the code, "elem_group" doesn't have a value. Anyway to do this? This is in AC 17 by the way.&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/67379iD46462A0619CC8DF/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Hotlink_module.png" title="Hotlink_module.png" /&gt;</description>
      <pubDate>Tue, 01 Aug 2023 12:10:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-Hotlink-Rotation/m-p/209506#M5346</guid>
      <dc:creator>Erenford</dc:creator>
      <dc:date>2023-08-01T12:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get Hotlink Rotation?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-Hotlink-Rotation/m-p/209507#M5347</link>
      <description>Ok I finally got the rotation of the hotlink:
&lt;PRE&gt;elem_hotlink.hotlink.transformation&lt;/PRE&gt;
in the hotlink element's tranmat (didn't see that there before)&lt;BR /&gt;
&lt;BR /&gt;
My next problem is getting the hotlink module's height according to its story setting of its project.&lt;BR /&gt;
For ex:&lt;BR /&gt;
In the hotlink module's own project: in the story setting, the elevation of Ground Floor (GF) is up to 3200.&lt;BR /&gt;
In the main file: the elevation of GF in the story setting is 3500. The hotlink module (GF) is then placed in the ground floor.&lt;BR /&gt;
&lt;BR /&gt;
The result will be that the hotlink module is smaller (by 300) than the current story settings. I want to get the hotlink's elevation of 3200. How do I get this? I'm assuming its in the group element API_GroupType-&amp;gt;hlmElev, but as I said before the element is empty.&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/12994i859258464FDA513E/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Hotlink_module_2.png" title="Hotlink_module_2.png" /&gt;</description>
      <pubDate>Wed, 17 Sep 2014 10:03:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-Hotlink-Rotation/m-p/209507#M5347</guid>
      <dc:creator>Erenford</dc:creator>
      <dc:date>2014-09-17T10:03:09Z</dc:date>
    </item>
  </channel>
</rss>

