How to get only shown elements in C++?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-01-13 02:35 PM
Thank you.
This worked as expected.
For some reason 'APIFilt_In3D' was convinced that it was useless.