BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Archicad C++ API
About Archicad add-on development using the C++ API.

get the elements lying in a rectangular area

Anonymous
Not applicable
Hi 🙂

Is there a way to query the element-database with a rectangular area?
The result should be the elements which are inside the query-rectangle.

Has anyone a hint how to achieve this?

I found "ACAPI_Selection_SetMarquee", but the docu says:
"The function has no effect on the individual selection of elements."
If the addon could select the elements inside the marque-area, the elements could be retrieved by ACAPI_Selection_Get.
But i don't know how or whether this is possible.

I hope someone has a hint for me 🙂

regards,
John
1 REPLY 1
Anonymous
Not applicable
In answer to your questions: yes, yes, and yes

I do this like you describe and it works fine. I have no idea what they mean by that statement, maybe it will not unselect any already selected elements???
Learn and get certified!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!