cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

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

Retrieve all object inside the zone

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 27 INT (since AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
Akos Somorjai
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