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.

[BUG] mapId of all the children of a navigator item

ReignBough
Enthusiast
item_data.mapId = API_LayoutMap;
// more codes
API_NavigatorItem** items;
err = ACAPI_Environment(APIEnv_GetNavigatorChildrenItemsID, &item_data, &items);
if (mErr != NoError) return;

int cnt = BMhGetSize((GSHandle)items) / sizeof(API_NavigatorItem);
for (int i = 0; i < cnt; i++)
    WriteReport("Children Map: %d", (*items).mapId);
This code will output the mapId of all the children of the given navigator item (item_data in this case) which is (API_UndefinedMap).

And since they are under item_data, they all should be API_LayoutMap.
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
0 REPLIES 0
Learn and get certified!