I'd like to add a library element (.gsm) to a teamwork folder to use the element later in a teamwork project. How can I do this?
Actually I'm using the following code to register a library folder on my PC:
IO::Location folderLocation;
API_SpecFolderID specFolderID = API_UserDocumentsFolderID;
const GSErrCode errorGetSpecFolderID = ACAPI_Environment(APIEnv_GetSpecFolderID, &specFolderID, &folderLocation);
folderLocation.AppendToLocal("MyLibrary");
API_LibraryInfo libraryInfo;
libraryInfo.location = folderLocation;
libInfo.Push(libraryInfo);
const GSErrCode errorSetLibrariesID = ACAPI_Environment(APIEnv_SetLibrariesID, &libInfo);
This works for local projects on my PC but not for teamwork projects. With a teamwork project ACAPI_Environment returns APIERR_NOTMINE
I assume, that I have to specify a library, that is on the server, not on my PC. Can anyone please tell me how to do use ACAPI_Environment(APIEnv_SetLibrariesID, &libInfo); for teamwork projects?
AC22-27, Windows 11, i7-1355U, 32GB RAM, 2TB SSD