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

yang686526 2009-05-05 08:38 AM

【转帖】dwgdirect produced dxf crashes autocad
 
dwgdirect produced dxf crashes autocad
dwgdirect produced dxf crashes autocad
hi there,
our application has written out a dxf file that crashes autocad. if i write the file out as dwg then autocad is able to read it. odamfcapp is able to read the dxf.
i've included a cut down version of the dxf and dwg file. i'm no expert on the actual file format so i can't tell if something is wrong. can you have a look please and tell me if there is something obviously wrong or if there is something i can call to make autocad read the file. i can supply some sample code if needed.
for information, the error log from autocad shows this :
"internal error: !dbscandr.h@229: einvalidinput"
thanks
attached files

if you audit this file (in odamfcapp edit/audit), with enabled error fixing, and save result to dxf, autocad will open it without problems.
sincerely yours,
george udov
okay, thanks.
whats actually wrong with the file though? have i done something wrong or forgotten to call something that has caused this?
sorry, i replied to quickly before doing any checking. i've done what you suggested and wrote out a fixed file. doing a diff between this and my original file has shown that the dimension style for the leader isn't set in the original file (odamfcapp told me this as well when i did the audit)


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