cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

Archicad C++ API
About Archicad add-on development using the C++ API.

ACAPI_ProjectOperation_Open() for teamwork

Iyur
Booster

Hi there.

 

Has anybody ever tried to open teamwork projects with ACAPI_ProjectOperation_Open() method?
It accepts API_FileOpenPars parameters where I could specify URI path via IO::Location. Actually I was trying to take an actual location from existing teamwork project and path it to the function, but got -7003 error.

 

 

...
API_FileOpenPars openPars;
BNZeroMemory (&openPars, sizeof (API_FileOpenPars));
openPars.useStoredLib = true;
openPars.fileTypeID = APIFType_WGProjFile;
API_ProjectInfo projectInfo = {};
ACAPI_ProjectOperation_Project (&projectInfo);
IO::Location* twLocation = projectInfo.location_team;
openPars.file = twLocation;
GSErrCode err = ACAPI_ProjectOperation_Open (&openPars);
...

 


It looks that this should be possible, but I guess I'm missing something.

 

 

0 REPLIES 0