We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2024-01-12 04:51 PM - last edited on 2024-09-17 01:16 PM by Doreena Deng
ACAPI_Element_GetElemList(API_ZombieElemID, &elemList, APIFilt_OnVisLayer);
This gets all elements on the visible layer.
I want to exclude elements hidden by F5 key or 3D filters or else.
How to get only shown elements in C++?
Archicad26 Windows10 APIDevKit 26.3000
notes)want other methods other than send [ctrl+A].
Solved! Go to Solution.
2024-01-13 08:21 AM
You can use several filter options. In your case you probably need the APIFilt_In3D filter. So the call would look something like this:
ACAPI_Element_GetElemList(API_ZombieElemID, &elemList, APIFilt_OnVisLayer | APIFilt_In3D);
2024-01-13 08:21 AM
You can use several filter options. In your case you probably need the APIFilt_In3D filter. So the call would look something like this:
ACAPI_Element_GetElemList(API_ZombieElemID, &elemList, APIFilt_OnVisLayer | APIFilt_In3D);
2024-01-13 02:35 PM
Thank you.
This worked as expected.
For some reason 'APIFilt_In3D' was convinced that it was useless.