Inspired by this thread
I'm trying to call the ProjectWise API from MDL/cpp. I would like to get the active datasource, project and document from PW Explorer and I've tried to do it this way:
HDSOURCE dataSource = aaApi_GetActiveDatasource();
if (dataSource == NULL)
lifalib_dmsg("Count = %d", aaApi_GetProjectCount());
The dataSource is NULL and the number of projects is -1...
There is no problem in find a datasource by name:
if (aaApi_GetDatasourceHandlesByName(L"Test", &pdataSource, &count))
What am I missing or doing wrong ?
Evan H. Hansen
Any news regarding this issue ?
Of course your code work fine in our environment Since you are a member of BDN we have contacted you to arrange a screen sharing session.
Mark Weisman | Senior Consultant | Bentley Systems, Inc.