高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】save As Dwg Problem
save as dwg problem
save as dwg problem
hi,
i used the following code to save an existing dwg file as a new one.
odstreambufptr pfile = theapp.createfile(odstring(szpathname),oda::kfilew rite,oda::ksharedenyno,oda::kcreatenew);
m_database>writefile(pfile,oddb::kdwg,od_version,t rue)
the old file is in oddb::kdhl_1015 ( 2000) file format
the new file size has reduced significantly.
some of the acdbvariabledictionary objects are missing in the new file.
also the thumbnail preview is lost. i have tried the setthumbnailbitmap() to reenable the thumbnail into the new file, but it is not working.
then i saved this dwg file ( one with reduced size and no thumbnail) as a new dwg file and this file has not lost any data.
can anyone enlighten me why these problems occur . are there any methods to solve them?
thanks.-- abhi
|