file-type icon indicating copy to clipboard operation
file-type copied to clipboard

Support DWG File

Open bireycikan opened this issue 5 years ago • 1 comments

DWG file

Filename extension: dwg, dws, dwt Media type: application/acad

Magic numbers: 41 43

bireycikan avatar Mar 10 '21 14:03 bireycikan

@bireycikan I’ve opened a PR for this file format and also tested it on a random DWG file from the net which works fine.

While verifying that 41 43 is correct I also found this list here: https://gist.github.com/ldong/f334b9dcd421c99e094d which states that 41 43 31 30 is also correct.

Ephigenia avatar Dec 29 '21 14:12 Ephigenia

re: media type... wikipedia says image/vnd.dwg, autodesk says application/vnd.autodesk.autocad.dwg

somebody1234 avatar Oct 20 '22 19:10 somebody1234

as for the headers for DWGs - it seems to be just the version numbers on the wikipedia page for dwg - in the case of AC10XX versions (well, AC1015 and above - not sure where you'd be able to find files older than that), anyway

somebody1234 avatar Oct 20 '22 19:10 somebody1234