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