We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2023-09-07 04:44 PM - last edited on 2024-09-17 12:50 PM by Doreena Deng
Is there anyone could suggest how to get list of all elements inside hotlink module with any API function?.
2023-09-08 08:32 AM
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)
Regards,