1133359Sobrien 2133359Sobrien#------------------------------------------------------------------------------ 3267843Sdelphij# $File: cad,v 1.13 2014/03/23 18:05:38 christos Exp $ 4133359Sobrien# autocad: file(1) magic for cad files 5133359Sobrien# 6133359Sobrien 7133359Sobrien# Microstation DGN/CIT Files (www.bentley.com) 8159764Sobrien# Last updated July 29, 2005 by Lester Hightower 9133359Sobrien# DGN is the default file extension of Microstation/Intergraph CAD files. 10133359Sobrien# CIT is the proprietary raster format (similar to TIFF) used to attach 11133359Sobrien# raster underlays to Microstation DGN (vector) drawings. 12133359Sobrien# 13133359Sobrien# http://www.wotsit.org/search.asp 14133359Sobrien# http://filext.com/detaillist.php?extdetail=DGN 15133359Sobrien# http://filext.com/detaillist.php?extdetail=CIT 16133359Sobrien# 17133359Sobrien# http://www.bentley.com/products/default.cfm?objectid=97F351F5-9C35-4E5E-89C2 18133359Sobrien# 3F86C928&method=display&p_objectid=97F351F5-9C35-4E5E-89C280A93F86C928 19133359Sobrien# http://www.bentley.com/products/default.cfm?objectid=A5C2FD43-3AC9-4C71-B682 20133359Sobrien# 721C479F&method=display&p_objectid=A5C2FD43-3AC9-4C71-B682C7BE721C479F 21159764Sobrien0 string \010\011\376 Microstation 22159764Sobrien>3 string \002 23159764Sobrien>>30 string \026\105 DGNFile 24159764Sobrien>>30 string \034\105 DGNFile 25159764Sobrien>>30 string \073\107 DGNFile 26159764Sobrien>>30 string \073\110 DGNFile 27159764Sobrien>>30 string \106\107 DGNFile 28159764Sobrien>>30 string \110\103 DGNFile 29159764Sobrien>>30 string \120\104 DGNFile 30159764Sobrien>>30 string \172\104 DGNFile 31159764Sobrien>>30 string \172\105 DGNFile 32169942Sobrien>>30 string \172\106 DGNFile 33159764Sobrien>>30 string \234\106 DGNFile 34159764Sobrien>>30 string \273\105 DGNFile 35159764Sobrien>>30 string \306\106 DGNFile 36159764Sobrien>>30 string \310\104 DGNFile 37159764Sobrien>>30 string \341\104 DGNFile 38159764Sobrien>>30 string \372\103 DGNFile 39159764Sobrien>>30 string \372\104 DGNFile 40159764Sobrien>>30 string \372\106 DGNFile 41159764Sobrien>>30 string \376\103 DGNFile 42159764Sobrien>4 string \030\000\000 CITFile 43159764Sobrien>4 string \030\000\003 CITFile 44133359Sobrien 45267843Sdelphij# AutoCAD 46267843Sdelphij# Merge of the different contributions and updates from http://en.wikipedia.org/wiki/Dwg 47267843Sdelphij# and http://www.iana.org/assignments/media-types/image/vnd.dwg 48267843Sdelphij0 string MC0.0 DWG AutoDesk AutoCAD Release 1.0 49267843Sdelphij!:mime image/vnd.dwg 50267843Sdelphij0 string AC1.2 DWG AutoDesk AutoCAD Release 1.2 51267843Sdelphij!:mime image/vnd.dwg 52267843Sdelphij0 string AC1.3 DWG AutoDesk AutoCAD Release 1.3 53267843Sdelphij!:mime image/vnd.dwg 54267843Sdelphij0 string AC1.40 DWG AutoDesk AutoCAD Release 1.40 55267843Sdelphij!:mime image/vnd.dwg 56267843Sdelphij0 string AC1.50 DWG AutoDesk AutoCAD Release 2.05 57267843Sdelphij!:mime image/vnd.dwg 58267843Sdelphij0 string AC2.10 DWG AutoDesk AutoCAD Release 2.10 59267843Sdelphij!:mime image/vnd.dwg 60267843Sdelphij0 string AC2.21 DWG AutoDesk AutoCAD Release 2.21 61267843Sdelphij!:mime image/vnd.dwg 62267843Sdelphij0 string AC2.22 DWG AutoDesk AutoCAD Release 2.22 63267843Sdelphij!:mime image/vnd.dwg 64267843Sdelphij0 string AC1001 DWG AutoDesk AutoCAD Release 2.22 65267843Sdelphij!:mime image/vnd.dwg 66267843Sdelphij0 string AC1002 DWG AutoDesk AutoCAD Release 2.50 67267843Sdelphij!:mime image/vnd.dwg 68267843Sdelphij0 string AC1003 DWG AutoDesk AutoCAD Release 2.60 69267843Sdelphij!:mime image/vnd.dwg 70267843Sdelphij0 string AC1004 DWG AutoDesk AutoCAD Release 9 71267843Sdelphij!:mime image/vnd.dwg 72267843Sdelphij0 string AC1006 DWG AutoDesk AutoCAD Release 10 73267843Sdelphij!:mime image/vnd.dwg 74267843Sdelphij0 string AC1009 DWG AutoDesk AutoCAD Release 11/12 75267843Sdelphij!:mime image/vnd.dwg 76267843Sdelphij# AutoCAD DWG versions R13/R14 (www.autodesk.com) 77267843Sdelphij# Written December 01, 2003 by Lester Hightower 78267843Sdelphij# Based on the DWG File Format Specifications at http://www.opendwg.org/ 79133359Sobrien# AutoCad, from Nahuel Greco 80159764Sobrien# AutoCAD DWG versions R12/R13/R14 (www.autodesk.com) 81267843Sdelphij0 string AC1012 DWG AutoDesk AutoCAD Release 13 82267843Sdelphij!:mime image/vnd.dwg 83267843Sdelphij0 string AC1014 DWG AutoDesk AutoCAD Release 14 84267843Sdelphij!:mime image/vnd.dwg 85267843Sdelphij0 string AC1015 DWG AutoDesk AutoCAD 2000/2002 86267843Sdelphij!:mime image/vnd.dwg 87267843Sdelphij 88226048Sobrien# A new version of AutoCAD DWG 89226048Sobrien# Sergey Zaykov (mail_of_sergey@mail.ru, sergey_zaikov@rambler.ru, 90226048Sobrien# ICQ 358572321) 91226048Sobrien# From various sources like: 92226048Sobrien# http://autodesk.blogs.com/between_the_lines/autocad-release-history.html 93267843Sdelphij0 string AC1018 DWG AutoDesk AutoCAD 2004/2005/2006 94267843Sdelphij!:mime image/vnd.dwg 95267843Sdelphij0 string AC1021 DWG AutoDesk AutoCAD 2007/2008/2009 96267843Sdelphij!:mime image/vnd.dwg 97267843Sdelphij0 string AC1024 DWG AutoDesk AutoCAD 2010/2011/2012 98267843Sdelphij!:mime image/vnd.dwg 99267843Sdelphij0 string AC1027 DWG AutoDesk AutoCAD 2013/2014 100267843Sdelphij!:mime image/vnd.dwg 101169942Sobrien 102226048Sobrien# KOMPAS 2D drawing from ASCON 103226048Sobrien# This is KOMPAS 2D drawing or fragment of drawing but is not detailed nor 104226048Sobrien# gathered nor specification 105226048Sobrien# ASCON http://ascon.net/main/ in English, 106226048Sobrien# http://ascon.ru/ main site in Russian 107226048Sobrien# Extension is CDW for drawing and FRW for fragment of drawing 108226048Sobrien# Sergey Zaykov (mail_of_sergey@mail.ru, sergey_zaikov@rambler.ru, 109226048Sobrien# ICQ 358572321, http://vkontakte.ru/id16076543) 110226048Sobrien# From: 111226048Sobrien# http://sd.ascon.ru/otrs/customer.pl?Action=CustomerFAQ&CategoryID=4&ItemID=292 112226048Sobrien# (in russian) and my experiments 113226048Sobrien0 string KF 114226048Sobrien>2 belong 0x4E00000C Kompas drawing 12.0 SP1 115226048Sobrien>2 belong 0x4D00000C Kompas drawing 12.0 116226048Sobrien>2 belong 0x3200000B Kompas drawing 11.0 SP1 117226048Sobrien>2 belong 0x3100000B Kompas drawing 11.0 118226048Sobrien>2 belong 0x2310000A Kompas drawing 10.0 SP1 119226048Sobrien>2 belong 0x2110000A Kompas drawing 10.0 120226048Sobrien>2 belong 0x08000009 Kompas drawing 9.0 SP1 121226048Sobrien>2 belong 0x05000009 Kompas drawing 9.0 122226048Sobrien>2 belong 0x33010008 Kompas drawing 8+ 123226048Sobrien>2 belong 0x1A000008 Kompas drawing 8.0 124226048Sobrien>2 belong 0x2C010107 Kompas drawing 7+ 125226048Sobrien>2 belong 0x05000007 Kompas drawing 7.0 126226048Sobrien>2 belong 0x32000006 Kompas drawing 6+ 127226048Sobrien>2 belong 0x09000006 Kompas drawing 6.0 128226048Sobrien>2 belong 0x5C009005 Kompas drawing 5.11R03 129226048Sobrien>2 belong 0x54009005 Kompas drawing 5.11R02 130226048Sobrien>2 belong 0x51009005 Kompas drawing 5.11R01 131226048Sobrien>2 belong 0x22009005 Kompas drawing 5.10R03 132226048Sobrien>2 belong 0x22009005 Kompas drawing 5.10R02 mar 133226048Sobrien>2 belong 0x21009005 Kompas drawing 5.10R02 febr 134226048Sobrien>2 belong 0x19009005 Kompas drawing 5.10R01 135226048Sobrien>2 belong 0xF4008005 Kompas drawing 5.9R01.003 136226048Sobrien>2 belong 0x1C008005 Kompas drawing 5.9R01.002 137226048Sobrien>2 belong 0x11008005 Kompas drawing 5.8R01.003 138226048Sobrien 139169942Sobrien# CAD: file(1) magic for computer aided design files 140169942Sobrien# Phillip Griffith <phillip dot griffith at gmail dot com> 141169942Sobrien# AutoCAD magic taken from the Open Design Alliance's OpenDWG specifications. 142169942Sobrien# 143169942Sobrien0 belong 0x08051700 Bentley/Intergraph MicroStation DGN cell library 144169942Sobrien0 belong 0x0809fe02 Bentley/Intergraph MicroStation DGN vector CAD 145169942Sobrien0 belong 0xc809fe02 Bentley/Intergraph MicroStation DGN vector CAD 146169942Sobrien0 beshort 0x0809 Bentley/Intergraph MicroStation 147169942Sobrien>0x02 byte 0xfe 148169942Sobrien>>0x04 beshort 0x1800 CIT raster CAD 149234250Sobrien 150234250Sobrien# 3DS (3d Studio files) Conflicts with diff output 0x3d '=' 151234250Sobrien#16 beshort 0x3d3d image/x-3ds 152267843Sdelphij 153267843Sdelphij# MegaCAD 2D/3D drawing (.prt) 154267843Sdelphij# http://megacad.de/ 155267843Sdelphij# From: Markus Heidelberg <markus.heidelberg@web.de> 156267843Sdelphij0 string MegaCad23\0 MegaCAD 2D/3D drawing 157