![]() |
【转帖】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 |
所有的时间均为北京时间。 现在的时间是 05:48 PM. |