Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Archicad C++ API
About Archicad add-on development using the C++ API.

Return an element by a property

Emkave
Booster

Hello. I wonder if there is an option somehow to retrieve a reference or a pointer to an existing element placed in the Archicad space by using its property or something like that. Note that I do not want to select it and retrieve the information. Moreover, I want to do it vice versa - use some property to find the element, move the camera to it and then select it via API. Have somebody done that before or do somebody knows what API functions is best to use for that?

 

Thanks in advance!

 

Operating system used: Windows 11

2 REPLIES 2
LChen
Graphisoft
Graphisoft

Hi, I'm not sure the purpose you'd like to do. Do you think it makes sense to do the following steps?
1) Get all the placed elements and check its property, pickup those which meets your conditions.
2) Get those element's geometry if you need and select or highlight them.
3) Show 3D window, like press F5.
I think those can be done via API.

HTH.

The idea is that I will create a request, use some GUID string or some other property as an input, and by using that input I will select the element and move the camera view to that element. I wanna do that using the API.