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

yang686526 2009-05-07 03:26 PM

【转帖】saving Dxb Division By Zero
 
saving dxb & division by zero
saving dxb & division by zero
hello
i've got problem saving a dxb file.
when i save dxf everything is ok (see attachment) but during saving dxb:
m_pdb->writefile(&vfilebuff, kdxb, kdhl_1800, false, 16);
i got "floating point divisin by zero" exception.
what is wrong with it?
thanks in advance
mk
attached files
your dwg file contains active ms viewport (viewporttablerecord) with zero height. when aspect ratio (width/height) is saved to dxf division by zero occurs.
but it will happen in both ascii and binary dxf saving.
dwgdirect's recoverfile() fixes the problem.
btw, if you open the file in autocad and save it to dxf you'll get a file which can't be loaded by autocad.
sergey slezkin
thanks a lot
it was simple
i've set the height of active viewport to non zero value and the problem has gone.


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