dwg文件格式.pdf
《dwg文件格式.pdf》由会员分享,可在线阅读,更多相关《dwg文件格式.pdf(8页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。
1、.DWG An attempt to specify the DWG(R12)using the BFF grammar for binary files.Acknowledgements I would like to thank Reini Urban for his contributions.Definition of the elementary elements typedef word word:=byte:b1,byte:b2 return(word)f|(word)s 8).typedef longword longp:=byte:b1,byte:b2,byte:b3,byt
2、e:b4 return(longword)b1|(longword)b2 8)|(longword)b3 16)|(longword)b4 24).typedef longword longword:=byte:b1,byte:b2,byte:b3,byte:b4 return(longword)b1|(longword)b2 8)|(longword)b3 16)|(longword)b4 2&kind!=22)then double:z fi,if(flag&8)then double:th fi,if(flag&0 x20)then handle fi,if(extra&4)then w
3、ord:paper fi,switch(kind)case 1:/*LINE*/point(!(flag&4):l10,point(!(flag&4):l11,if(opts&1)then point(TRUE):l210 fi,if(opts&2)then double:l38 fi,case 2:/*POINT*/point(!(flag&4):l10,if(opts&1)then point(TRUE):l210 fi,if(opts&2)then double:l38 fi,case 3:/*CIRCLE*/point(FALSE):l10,double:l40,if(opts&1)t
4、hen point(TRUE):l210 fi,if(opts&2)then double:l38 fi,case 4:/*SHAPE*/point(FALSE):l10,word:l2,if(opts&1)then point(TRUE):l210 fi,if(opts&2)then double:l38 fi,case 7:/*TEXT*/point(FALSE):l10,double:l40,string:l1,if(opts&1)then double:l50 fi,if(opts&2)then double:l41 fi,if(opts&4)then double:l51 fi,/*
5、?*/.if(opts&8)then byte:l7 fi,if(opts&0 x10)then byte:l71 fi,if(opts&0 x20)then byte:l72 fi,if(opts&0 x40)then point(FALSE):l11 fi,if(opts&0 x100)then byte:l73 fi,case 8:/*ARC*/point(FALSE):l10,double:l40,double:l50,double:l51,if(opts&1)then point(TRUE):l210 fi,if(opts&2)then double:l38 fi,case 9:/*
6、TRACE*/point(FALSE):l10,point(FALSE):l11,point(FALSE):l12,point(FALSE):l13,if(opts&1)then point(TRUE):l210 fi,if(opts&2)then double:l38 fi,case 11:/*SOLID*/point(FALSE):l11,point(FALSE):l12,point(FALSE):l13,point(FALSE):l14,if(opts&1)then point(TRUE):l210 fi,if(opts&2)then double:l38 fi case 12:/*BL
7、OCK*/point(FALSE):l10,/*?*/string:l1,/*if(opts&1)then?*/if(opts&2)then string:l3 fi case 13:/*ENDBLK*/case 14:/*INSERT*/word:l1,point(FALSE):l10,if(opts&1)then double:l41 fi,if(opts&2)then double:l42 fi,if(opts&4)then double:l43 fi,if(opts&8)then double:l50 fi,if(opts&0 x10)then byte:l70 fi,/*?*/if(
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- dwg 文件格式
限制150内