高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】help, get dwg version problem
help, get dwg version problem
help, get dwg version problem
hi guys:
i got a strange problem with the dwg file version. i got the same result of the dwg version(kdhl_1021) using below code, though i changed different version dwg files.
oddbdatabaseptr pdb = exhostappservices::createdatabase(false);
pdb->setretainoriginalthumbnailbitmap(true);
pdb->readfile("d:\\2000.dwg", false, oda::ksharedenyreadwrite);
if (!pdb.isnull())
{
oddb:wgversion dd1 = pdb1->version();
oddb:wgversion dd2 = pdb->originalfileversion();
oddb:wgversion dd3 = pdb->originalfilesavedbyversion();
}
output:
dd1 = dd2 = dd3 = kdhl_1021
i have no idea why, can anybody help me? thanks.
version() is just current database version. it will be the same as originalfileversion() until you convert database to some other version.
originalfilesavedbyversion() is not handled by dd - it is read from the file as is. in new file it is set to zero.
vladimir
|