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.

Get Element list in a particular view

cad developer
Contributor

Hi,

I have a requirement of exporting element list which exists only in that particular view. 

 

Consider a case:

1. A project is created with simple elements/features like wall, door, window etc

2. When a new element is added it should come in the exported list for that view

 

Currently all element details are exported out. We need only specific to that view. 

 

Please help resolve this. 

 

Thanks & Regards

4 REPLIES 4
Barry Kelly
Moderator

@cad developer 

Are you asking for help in developing an add-on to do this?

Or is it just a wish?

 

Either way I will move the post to the correct forum as it has nothing to do with the Technology Preview.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Hi Barry,

 

Thanks for replying. 

 

No I do not need help developing an AddOn on this, I just need a API method call for my requirement. 

 

And also no, it is not a wish. 

 

Regards


@cad developer wrote:

I just need a API method call for my requirement. 


OK, I have moved the post to the API forum.

Hopefully someone can help you.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Hi!

I assume you are using ACAPI_Element_GetElemList right?

Did you try using filter bits already. A good start is probably APIFilt_OnVisLayer and maybe also APIFilt_OnActFloor and APIFilt_IsVisibleByRenovation. Flags can be combined with |(logical OR).

For different views (floor plans vs. 3D views vs. section/elevation) you might need different filter bits. But I think it depends a lot on what Archicad features you are using in the views.

Hope that helps! Feel free to add more details of your situation if the above doesn't apply.