Message 1 of 12
Generate preview

Not applicable
04-18-2006
10:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying using AcDbDatabase::thumbnailBitmap() and
AcDbDatabase::setThumbnailBitmap()
to generate a preview thumbnail on a new database before saving it, but it
fails on thumbnailBitmap().
Here is the code: (ObjectArx2002), no error checking
AcDbDatabase *pNewDB = NULL;//new database;
es = acdbHostApplicationServices()->workingDatabase()->wblock(pNewDB,
id);//add something to it
void * pThumbnail = pNewDB->thumbnailBitmap();//fails here
pNewDB->setThumbnailBitmap(pThumbnail);
The documentation is not very clear (or extensive) so i'm not sure i do the
right thing
TIA
alex
I'm trying using AcDbDatabase::thumbnailBitmap() and
AcDbDatabase::setThumbnailBitmap()
to generate a preview thumbnail on a new database before saving it, but it
fails on thumbnailBitmap().
Here is the code: (ObjectArx2002), no error checking
AcDbDatabase *pNewDB = NULL;//new database;
es = acdbHostApplicationServices()->workingDatabase()->wblock(pNewDB,
id);//add something to it
void * pThumbnail = pNewDB->thumbnailBitmap();//fails here
pNewDB->setThumbnailBitmap(pThumbnail);
The documentation is not very clear (or extensive) so i'm not sure i do the
right thing
TIA
alex