Read thumbnail for a DWG file

Is there a way I can read thumbnail for a DWG using ProjectWise API?

I tried using the aaApi_ThumbnailSelectByDocToHBITMAP function , but it is returning the bitmap as NULL.

Error it displays is- Invalid parameter passed to the API function

Parameters I am passing to the function-

DWORD rgbBk = GetSysColor (COLOR_WINDOW);

aaApi_ThumbnailSelectByDocToHBITMAP(aaApi_GetDocumentGuidProperty(docInfo->lProject, docInfo->lDocument), rgbBk, &hBitmap);

Any help is appreciated.

Parents Reply Children
No Data