查看单个帖子
旧 2009-05-07, 03:21 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)