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