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