License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
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