几何尺寸与公差论坛------致力于产品几何量公差标准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 using dwgdirect for displaying dxf-file (http://www.dimcax.com/hust/showthread.php?t=16154)

yang686526 2009-05-05 10:01 AM

【转帖】exception using dwgdirect for displaying dxf-file
 
exception using dwgdirect for displaying dxf-file
exception using dwgdirect for displaying dxf-file
i've wrote a tool for displaying and testing dxf and dwg files. first i've did that using the toolkit / viewkit version 2.010.
today i'm trying to re-code these program using the new dwgdirect 1.08 and i've now entered the testing area.
so one of my sample testing files is a test.dxf, which contains a single tube.
now lets face the problem ....
1. my orginal software based onto toolkit/viewkit 2.010 works fine. the result is ok !
2. loading the file in autocad shows no problems.
3. loading the file in voloview shows no problems.
4. my new software based onto dwgdirect 1.08 shows some asserts and exceptions. i'm not able to load that file.
5. loading the dxf in the dwgdirect1.08-odamfcapp-example shows some erros and exceptions. the odamfcapp is unable to load that file !
6. dconvertwin.exe can load the dxf and convert it to a dwg without any problems.
using that dwg file (instead of the dxf) there is no problem with the new dwgdirect1.08 based software. not in the odamfcapp ... and not in my new software version.
has anybody an idea, why the dwgdirect does not like that file ?
and may be how to solve the problem ?
i've attached the dxf file to this message (size is only 19kb).
thanks in advance for every idea ...
attached files
the file is incorrect. it's of r12 version but contains 100 group codes (subclass markers) in appid table:
100
acdbsymboltable
we'll fix reading such files in next release.
sergey slezkin
thanks for the answer
but just to point onto one aspect of my question ...
the dwgdirect 1.08 loading of dxf applies the format specifications a bit stricter than the "older" toolkit 2.010 version ?
or the way: the toolkit treats incoming dxf/dwg files a bit more tolerant ?
rolf
in this specific situation (group codes 100 in r12 files) dwgdirect appeared to be "less stable to incorrect data".
i already fixed it.
sergey slezkin


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