![]() |
【转帖】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. |