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

yang686526 2009-05-05 09:55 AM

【转帖】exception during writefile
 
exception during writefile
exception during writefile
odwrfilebuf fb(completefilename);
oddb::savetype filetype = oddb::kdwg;
oddb:wgversion outver = oddb::vac15;
try
{
_pcurrentdatabase->writefile(&fb,filetype,outver,true);
}
catch(oderror &error)
{
odstring strdes = error.description();
odresult result = error.code();
}
the _pcurrentdatabase is populated with 2-d and 1-d data. writefile throws an error and the decription is "previous error: ". oderesult = eendoffile. what is going on here? any help will be appreciated.
what is the call stack when the exception is thrown?
vladimir


所有的时间均为北京时间。 现在的时间是 05:13 PM.