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