License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…
2021-08-24
05:00 PM
- last edited on
2021-09-14
09:18 AM
by
Noemi Balogh
//---->>> API_LayoutInfo layoutInfo; BNZeroMemory (&layoutInfo, sizeof (API_LayoutInfo)); if (ACAPI_Environment (APIEnv_GetLayoutSetsID, &layoutInfo, &api_dbPars.databaseUnId) == NoError) { ... for (auto it = layoutInfo.customData->EnumeratePairs (); it != nullptr; ++it) { *it->value += " - Modified via API"; } ACAPI_Environment (APIEnv_ChangeLayoutSetsID, &layoutInfo, &api_dbPars.databaseUnId); } //<<<---- My code is: //->> API_LayoutInfo layoutInfo; err = ACAPI_Environment(APIEnv_GetLayoutSetsID, &layoutInfo, &databaseUnId, &actualPageIndex); if (layoutInfo.customData != nullptr) { if (layoutInfo.customData->GetSize() > 0) { Guid keyguid; keyguid.ConvertFromString("7151E155-1B9B-4F17-9D4F-35F8036DE4A2"); API_Guid key = GSGuid2APIGuid(keyguid);//layoutInfo.customData->GetAKey(0); UniString us; if(layoutInfo.customData->ContainsKey(key)) us = layoutInfo.customData->Get(key); } }
Solved! Go to Solution.
2021-08-25 04:06 PM
2021-08-25 04:06 PM
2021-08-25 04:54 PM