cad 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. #------------------------------------------------------------------------------
  2. # $File: cad,v 1.11 2011/12/08 12:12:46 rrt Exp $
  3. # autocad: file(1) magic for cad files
  4. #
  5. # AutoCAD DWG versions R13/R14 (www.autodesk.com)
  6. # Written December 01, 2003 by Lester Hightower
  7. # Based on the DWG File Format Specifications at http://www.opendwg.org/
  8. 0 string \101\103\061\060\061 AutoCAD
  9. >5 string \062\000\000\000\000 DWG ver. R13
  10. >5 string \064\000\000\000\000 DWG ver. R14
  11. # Microstation DGN/CIT Files (www.bentley.com)
  12. # Last updated July 29, 2005 by Lester Hightower
  13. # DGN is the default file extension of Microstation/Intergraph CAD files.
  14. # CIT is the proprietary raster format (similar to TIFF) used to attach
  15. # raster underlays to Microstation DGN (vector) drawings.
  16. #
  17. # http://www.wotsit.org/search.asp
  18. # http://filext.com/detaillist.php?extdetail=DGN
  19. # http://filext.com/detaillist.php?extdetail=CIT
  20. #
  21. # http://www.bentley.com/products/default.cfm?objectid=97F351F5-9C35-4E5E-89C2
  22. # 3F86C928&method=display&p_objectid=97F351F5-9C35-4E5E-89C280A93F86C928
  23. # http://www.bentley.com/products/default.cfm?objectid=A5C2FD43-3AC9-4C71-B682
  24. # 721C479F&method=display&p_objectid=A5C2FD43-3AC9-4C71-B682C7BE721C479F
  25. 0 string \010\011\376 Microstation
  26. >3 string \002
  27. >>30 string \026\105 DGNFile
  28. >>30 string \034\105 DGNFile
  29. >>30 string \073\107 DGNFile
  30. >>30 string \073\110 DGNFile
  31. >>30 string \106\107 DGNFile
  32. >>30 string \110\103 DGNFile
  33. >>30 string \120\104 DGNFile
  34. >>30 string \172\104 DGNFile
  35. >>30 string \172\105 DGNFile
  36. >>30 string \172\106 DGNFile
  37. >>30 string \234\106 DGNFile
  38. >>30 string \273\105 DGNFile
  39. >>30 string \306\106 DGNFile
  40. >>30 string \310\104 DGNFile
  41. >>30 string \341\104 DGNFile
  42. >>30 string \372\103 DGNFile
  43. >>30 string \372\104 DGNFile
  44. >>30 string \372\106 DGNFile
  45. >>30 string \376\103 DGNFile
  46. >4 string \030\000\000 CITFile
  47. >4 string \030\000\003 CITFile
  48. # AutoCad, from Nahuel Greco
  49. # AutoCAD DWG versions R12/R13/R14 (www.autodesk.com)
  50. 0 string AC1012 DWG AutoDesk AutoCad (release 12)
  51. 0 string AC1013 DWG AutoDesk AutoCad (release 13)
  52. 0 string AC1014 DWG AutoDesk AutoCad (release 14)
  53. # A new version of AutoCAD DWG
  54. # Sergey Zaykov (mail_of_sergey@mail.ru, sergey_zaikov@rambler.ru,
  55. # ICQ 358572321)
  56. # From various sources like:
  57. # http://autodesk.blogs.com/between_the_lines/autocad-release-history.html
  58. 0 string AC1018 DWG AutoDesk AutoCAD 2004/2005/2006
  59. 0 string AC1021 DWG AutoDesk AutoCAD 2007/2008/2009
  60. 0 string AC1024 DWG AutoDesk AutoCAD 2010/2011
  61. # KOMPAS 2D drawing from ASCON
  62. # This is KOMPAS 2D drawing or fragment of drawing but is not detailed nor
  63. # gathered nor specification
  64. # ASCON http://ascon.net/main/ in English,
  65. # http://ascon.ru/ main site in Russian
  66. # Extension is CDW for drawing and FRW for fragment of drawing
  67. # Sergey Zaykov (mail_of_sergey@mail.ru, sergey_zaikov@rambler.ru,
  68. # ICQ 358572321, http://vkontakte.ru/id16076543)
  69. # From:
  70. # http://sd.ascon.ru/otrs/customer.pl?Action=CustomerFAQ&CategoryID=4&ItemID=292
  71. # (in russian) and my experiments
  72. 0 string KF
  73. >2 belong 0x4E00000C Kompas drawing 12.0 SP1
  74. >2 belong 0x4D00000C Kompas drawing 12.0
  75. >2 belong 0x3200000B Kompas drawing 11.0 SP1
  76. >2 belong 0x3100000B Kompas drawing 11.0
  77. >2 belong 0x2310000A Kompas drawing 10.0 SP1
  78. >2 belong 0x2110000A Kompas drawing 10.0
  79. >2 belong 0x08000009 Kompas drawing 9.0 SP1
  80. >2 belong 0x05000009 Kompas drawing 9.0
  81. >2 belong 0x33010008 Kompas drawing 8+
  82. >2 belong 0x1A000008 Kompas drawing 8.0
  83. >2 belong 0x2C010107 Kompas drawing 7+
  84. >2 belong 0x05000007 Kompas drawing 7.0
  85. >2 belong 0x32000006 Kompas drawing 6+
  86. >2 belong 0x09000006 Kompas drawing 6.0
  87. >2 belong 0x5C009005 Kompas drawing 5.11R03
  88. >2 belong 0x54009005 Kompas drawing 5.11R02
  89. >2 belong 0x51009005 Kompas drawing 5.11R01
  90. >2 belong 0x22009005 Kompas drawing 5.10R03
  91. >2 belong 0x22009005 Kompas drawing 5.10R02 mar
  92. >2 belong 0x21009005 Kompas drawing 5.10R02 febr
  93. >2 belong 0x19009005 Kompas drawing 5.10R01
  94. >2 belong 0xF4008005 Kompas drawing 5.9R01.003
  95. >2 belong 0x1C008005 Kompas drawing 5.9R01.002
  96. >2 belong 0x11008005 Kompas drawing 5.8R01.003
  97. # CAD: file(1) magic for computer aided design files
  98. # Phillip Griffith <phillip dot griffith at gmail dot com>
  99. # AutoCAD magic taken from the Open Design Alliance's OpenDWG specifications.
  100. #
  101. 0 belong 0x08051700 Bentley/Intergraph MicroStation DGN cell library
  102. 0 belong 0x0809fe02 Bentley/Intergraph MicroStation DGN vector CAD
  103. 0 belong 0xc809fe02 Bentley/Intergraph MicroStation DGN vector CAD
  104. 0 beshort 0x0809 Bentley/Intergraph MicroStation
  105. >0x02 byte 0xfe
  106. >>0x04 beshort 0x1800 CIT raster CAD
  107. 0 string AC1012 AutoDesk AutoCAD R13
  108. 0 string AC1014 AutoDesk AutoCAD R14
  109. 0 string AC1015 AutoDesk AutoCAD R2000
  110. # 3DS (3d Studio files) Conflicts with diff output 0x3d '='
  111. #16 beshort 0x3d3d image/x-3ds