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.
Aparna, I personally haven't had the need to look into this part of the APIs. I noticed in the documentation for this function seems to indicate that it may fail, and that you should then try one of two other functions to get what you want.
Did you try either of those functions?