Choose your top Archicad wishes!

Read more
Archicad C++ API
About Archicad add-on development using the C++ API.

How to get list of all elements inside hotlink module?


Is there anyone could suggest how to get list of all elements inside hotlink module with any API function?.


First get the hotlink instances (hotlinks placed on the floor plan) using ACAPI_Element_Get (type is API_HotlinkID)

If you know the Hotlink Node then you can use APIDb_GetHotlinkInstancesID instead to get the hotlink instances, it gives an array so just compare the floorInd to the specific story.

Take note of its element guid on the element header.

Then get the elements you want using ACAPI_Element_Get / ACAPI_Element_GetElemList and compare the elements hotlinkGuid to the instances element guid. If hotlinkGuid is APINULLGuid then it means the element is not inside a hotlink module.

if (elem.header.hotlinkGuid == hotlink_instance.header.guid)



Archicad 25 5010 INT FULL
Archicad 26 5002 INT FULL
Visual Studio Professional 2019
Win 10 Pro 64-bit