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

yang686526 2009-05-04 07:58 PM

【转帖】do dxf files need layer 0
 
do dxf files need layer 0?
do dxf files need layer 0?
when saving a dxf file, i get an error ("cannot resolve layer table") if i've deleted layer 0. the same thing does not happen when saving a dwg file (i'm using odt right now).
i guess i can work around it, but is this expected behavior?
layer 0 must present in drawing (and some other default objects too like linetypes continuous, byblock, bylayer).
sergey slezkin
but it appears to only be true of dxf, not dwg. if i use odt to create a simple drawing, adsavefile() will give me an error if i'm saving as ad_dxf, but no error if saving as ad_dwg.
it's not a big deal - i just couldn't find anything in a dxf format document that says it's required.
valid autocad drawing contains a number of objects which must always present. if some essential objects are absent some programs may crash on such drawing, some not.
i think even if you succeed in writing dwg without layer 0 with odt autocad will not be happy loading it.
sergey slezkin


所有的时间均为北京时间。 现在的时间是 02:34 PM.