We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2015-11-11 06:30 PM - last edited on 2023-07-13 02:48 PM by Doreena Deng
GSErrCode err; API_DatabaseInfo dbInfo; BNZeroMemory (&dbInfo, sizeof (API_DatabaseInfo)); dbInfo.typeID = APIWind_WorksheetID; CHANSI2Unicode ("Det 1", (GS::Int32)strlen("Det 1"), dbInfo.name, API_UniLongNameLen); CHANSI2Unicode ("D10", (GS::Int32)strlen("D10"), dbInfo.ref, API_UniLongNameLen); if (ACAPI_Database (APIDb_NewDatabaseID, &dbInfo, NULL) == NoError) { err = ACAPI_Database (APIDb_ChangeCurrentDatabaseID, &dbInfo, NULL); }
2015-11-12 12:19 PM
2015-11-12 01:35 PM
2016-01-19 10:44 AM
vuego wrote:This can be simplified to:
CHANSI2Unicode ("Det 1", (GS::Int32)strlen("Det 1"), dbInfo.name, API_UniLongNameLen); CHANSI2Unicode ("D10", (GS::Int32)strlen("D10"), dbInfo.ref, API_UniLongNameLen);
GS::ucscpy (dbInfo.name, L("Det 1")); GS::ucscpy (dbInfo.ref, L("D10"));Best, Ákos