We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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

Retrieve all object inside the zone

Anonymous
Not applicable
Is there any way to retrieve all objects inside the zone? thanks.
2 REPLIES 2
ReignBough
Enthusiast
What I would do is use the coordinates of the zone and plug it in on with ACAPI_Selection_SetMarquee. Then call ACAPI_Selection_Get to get all elements then filter them by type.
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
Akos Somorjai
Graphisoft
Graphisoft
easry wrote:
Is there any way to retrieve all objects inside the zone? thanks.


Hi,

There's a function called ACAPI_Element_GetRelations(), pass the zone's GUID in the first parameter, API_ObjectID in the second, and a pointer to an API_RoomRelation structure in the third -- this struct will be filled in with the containment information.

Cheers, Akos