"Fossies" - the Fresh Open Source Software Archive

Member "file-5.35/magic/Magdir/cad" (19 Aug 2018, 7167 Bytes) of package /linux/misc/file-5.35.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "cad": 5.34_vs_5.35.

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