cad 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. #------------------------------------------------------------------------------
  2. # $File: cad,v 1.15 2017/06/24 15:24:56 christos Exp $
  3. # autocad: file(1) magic for cad files
  4. #
  5. # Microstation DGN/CIT Files (www.bentley.com)
  6. # Last updated July 29, 2005 by Lester Hightower
  7. # DGN is the default file extension of Microstation/Intergraph CAD files.
  8. # CIT is the proprietary raster format (similar to TIFF) used to attach
  9. # raster underlays to Microstation DGN (vector) drawings.
  10. #
  11. # http://www.wotsit.org/search.asp
  12. # http://filext.com/detaillist.php?extdetail=DGN
  13. # http://filext.com/detaillist.php?extdetail=CIT
  14. #
  15. # http://www.bentley.com/products/default.cfm?objectid=97F351F5-9C35-4E5E-89C2
  16. # 3F86C928&method=display&p_objectid=97F351F5-9C35-4E5E-89C280A93F86C928
  17. # http://www.bentley.com/products/default.cfm?objectid=A5C2FD43-3AC9-4C71-B682
  18. # 721C479F&method=display&p_objectid=A5C2FD43-3AC9-4C71-B682C7BE721C479F
  19. 0 string \010\011\376 Microstation
  20. >3 string \002
  21. >>30 string \026\105 DGNFile
  22. >>30 string \034\105 DGNFile
  23. >>30 string \073\107 DGNFile
  24. >>30 string \073\110 DGNFile
  25. >>30 string \106\107 DGNFile
  26. >>30 string \110\103 DGNFile
  27. >>30 string \120\104 DGNFile
  28. >>30 string \172\104 DGNFile
  29. >>30 string \172\105 DGNFile
  30. >>30 string \172\106 DGNFile
  31. >>30 string \234\106 DGNFile
  32. >>30 string \273\105 DGNFile
  33. >>30 string \306\106 DGNFile
  34. >>30 string \310\104 DGNFile
  35. >>30 string \341\104 DGNFile
  36. >>30 string \372\103 DGNFile
  37. >>30 string \372\104 DGNFile
  38. >>30 string \372\106 DGNFile
  39. >>30 string \376\103 DGNFile
  40. >4 string \030\000\000 CITFile
  41. >4 string \030\000\003 CITFile
  42. # AutoCAD
  43. # Merge of the different contributions and updates from http://en.wikipedia.org/wiki/Dwg
  44. # and http://www.iana.org/assignments/media-types/image/vnd.dwg
  45. 0 string MC0.0 DWG AutoDesk AutoCAD Release 1.0
  46. !:mime image/vnd.dwg
  47. 0 string AC1.2 DWG AutoDesk AutoCAD Release 1.2
  48. !:mime image/vnd.dwg
  49. 0 string AC1.3 DWG AutoDesk AutoCAD Release 1.3
  50. !:mime image/vnd.dwg
  51. 0 string AC1.40 DWG AutoDesk AutoCAD Release 1.40
  52. !:mime image/vnd.dwg
  53. 0 string AC1.50 DWG AutoDesk AutoCAD Release 2.05
  54. !:mime image/vnd.dwg
  55. 0 string AC2.10 DWG AutoDesk AutoCAD Release 2.10
  56. !:mime image/vnd.dwg
  57. 0 string AC2.21 DWG AutoDesk AutoCAD Release 2.21
  58. !:mime image/vnd.dwg
  59. 0 string AC2.22 DWG AutoDesk AutoCAD Release 2.22
  60. !:mime image/vnd.dwg
  61. 0 string AC1001 DWG AutoDesk AutoCAD Release 2.22
  62. !:mime image/vnd.dwg
  63. 0 string AC1002 DWG AutoDesk AutoCAD Release 2.50
  64. !:mime image/vnd.dwg
  65. 0 string AC1003 DWG AutoDesk AutoCAD Release 2.60
  66. !:mime image/vnd.dwg
  67. 0 string AC1004 DWG AutoDesk AutoCAD Release 9
  68. !:mime image/vnd.dwg
  69. 0 string AC1006 DWG AutoDesk AutoCAD Release 10
  70. !:mime image/vnd.dwg
  71. 0 string AC1009 DWG AutoDesk AutoCAD Release 11/12
  72. !:mime image/vnd.dwg
  73. # AutoCAD DWG versions R13/R14 (www.autodesk.com)
  74. # Written December 01, 2003 by Lester Hightower
  75. # Based on the DWG File Format Specifications at http://www.opendwg.org/
  76. # AutoCad, from Nahuel Greco
  77. # AutoCAD DWG versions R12/R13/R14 (www.autodesk.com)
  78. 0 string AC1012 DWG AutoDesk AutoCAD Release 13
  79. !:mime image/vnd.dwg
  80. 0 string AC1014 DWG AutoDesk AutoCAD Release 14
  81. !:mime image/vnd.dwg
  82. 0 string AC1015 DWG AutoDesk AutoCAD 2000/2002
  83. !:mime image/vnd.dwg
  84. # A new version of AutoCAD DWG
  85. # Sergey Zaykov (mail_of_sergey@mail.ru, sergey_zaikov@rambler.ru,
  86. # ICQ 358572321)
  87. # From various sources like:
  88. # http://autodesk.blogs.com/between_the_lines/autocad-release-history.html
  89. 0 string AC1018 DWG AutoDesk AutoCAD 2004/2005/2006
  90. !:mime image/vnd.dwg
  91. 0 string AC1021 DWG AutoDesk AutoCAD 2007/2008/2009
  92. !:mime image/vnd.dwg
  93. 0 string AC1024 DWG AutoDesk AutoCAD 2010/2011/2012
  94. !:mime image/vnd.dwg
  95. 0 string AC1027 DWG AutoDesk AutoCAD 2013/2014
  96. !:mime image/vnd.dwg
  97. # KOMPAS 2D drawing from ASCON
  98. # This is KOMPAS 2D drawing or fragment of drawing but is not detailed nor
  99. # gathered nor specification
  100. # ASCON http://ascon.net/main/ in English,
  101. # http://ascon.ru/ main site in Russian
  102. # Extension is CDW for drawing and FRW for fragment of drawing
  103. # Sergey Zaykov (mail_of_sergey@mail.ru, sergey_zaikov@rambler.ru,
  104. # ICQ 358572321, http://vkontakte.ru/id16076543)
  105. # From:
  106. # http://sd.ascon.ru/otrs/customer.pl?Action=CustomerFAQ&CategoryID=4&ItemID=292
  107. # (in russian) and my experiments
  108. 0 string KF
  109. >2 belong 0x4E00000C Kompas drawing 12.0 SP1
  110. >2 belong 0x4D00000C Kompas drawing 12.0
  111. >2 belong 0x3200000B Kompas drawing 11.0 SP1
  112. >2 belong 0x3100000B Kompas drawing 11.0
  113. >2 belong 0x2310000A Kompas drawing 10.0 SP1
  114. >2 belong 0x2110000A Kompas drawing 10.0
  115. >2 belong 0x08000009 Kompas drawing 9.0 SP1
  116. >2 belong 0x05000009 Kompas drawing 9.0
  117. >2 belong 0x33010008 Kompas drawing 8+
  118. >2 belong 0x1A000008 Kompas drawing 8.0
  119. >2 belong 0x2C010107 Kompas drawing 7+
  120. >2 belong 0x05000007 Kompas drawing 7.0
  121. >2 belong 0x32000006 Kompas drawing 6+
  122. >2 belong 0x09000006 Kompas drawing 6.0
  123. >2 belong 0x5C009005 Kompas drawing 5.11R03
  124. >2 belong 0x54009005 Kompas drawing 5.11R02
  125. >2 belong 0x51009005 Kompas drawing 5.11R01
  126. >2 belong 0x22009005 Kompas drawing 5.10R03
  127. >2 belong 0x22009005 Kompas drawing 5.10R02 mar
  128. >2 belong 0x21009005 Kompas drawing 5.10R02 febr
  129. >2 belong 0x19009005 Kompas drawing 5.10R01
  130. >2 belong 0xF4008005 Kompas drawing 5.9R01.003
  131. >2 belong 0x1C008005 Kompas drawing 5.9R01.002
  132. >2 belong 0x11008005 Kompas drawing 5.8R01.003
  133. # CAD: file(1) magic for computer aided design files
  134. # Phillip Griffith <phillip dot griffith at gmail dot com>
  135. # AutoCAD magic taken from the Open Design Alliance's OpenDWG specifications.
  136. #
  137. 0 belong 0x08051700 Bentley/Intergraph MicroStation DGN cell library
  138. 0 belong 0x0809fe02 Bentley/Intergraph MicroStation DGN vector CAD
  139. 0 belong 0xc809fe02 Bentley/Intergraph MicroStation DGN vector CAD
  140. 0 beshort 0x0809 Bentley/Intergraph MicroStation
  141. >0x02 byte 0xfe
  142. >>0x04 beshort 0x1800 CIT raster CAD
  143. # 3DS (3d Studio files)
  144. 0 leshort 0x4d4d
  145. >6 leshort 0x2
  146. >>8 lelong 0xa
  147. >>>16 leshort 0x3d3d 3D Studio model
  148. !:mime image/x-3ds
  149. !:extension 3ds
  150. # MegaCAD 2D/3D drawing (.prt)
  151. # http://megacad.de/
  152. # From: Markus Heidelberg <markus.heidelberg@web.de>
  153. 0 string MegaCad23\0 MegaCAD 2D/3D drawing