几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】odamfcappdll cannot open my dwg (http://www.dimcax.com/hust/showthread.php?t=17418)

yang686526 2009-05-06 07:05 PM

【转帖】odamfcappdll cannot open my dwg
 
odamfcappdll cannot open my dwg
odamfcappdll cannot open my dwg
hello support,
i could not open the attached dwg file with odamfcappdll 2.4.1.
could you investigate this problem please ?
regards.
attached files
i'm not sure where is the bug (in mfc carchive, or in ole item trying to load), but you may fix it by inserting following line in examples\win\odamfcapp\ole.cpp, 145 (oledwgitem::load()):
code:
}
end_catch
// to avoid incorrect archive closing in some cases
archive.abort();
}
else
vladimir
after some investigation i understand that more correct fix is to add carchive::bnoflushondelete flag to carchive constructor in the oledwgitem::load function. not sure how it worked earlier.
vladimir

indeed it works better.
thank you.

now i have got another problem with this file.
the oddb::visibility value of almost all oddbviewport is oddb::kinvisible.
however if i load the file in odamfcappdll, i can see these viewports.
why ? what is the meaning of the oddb::visibility flag ? i could not find its equivalent in autocad 2004.
thank you in advance for your help.
acdb::visibility in arx has the same meaning as in dd.
visibility of the viewport affects only its border
vladimir


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