几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】save As Dwg Problem (http://www.dimcax.com/hust/showthread.php?t=18490)

yang686526 2009-05-07 03:21 PM

【转帖】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


所有的时间均为北京时间。 现在的时间是 02:29 AM.