Microsoft published the binary file formats for Office a week ago.
Here is an explanation on: Why are the Microsoft Office file formats so complicated?
- There are a lot of optimizations in the file formats that are intended to make opening and saving files much faster.
- They were not designed with interoperability in mind.
- They have to reflect all the complexity of the applications.
- They have to reflect the history of the applications.
To some extent this applies to binary formats like DWG. One day maybe Autodesk has to or decides to open up their format just like Microsoft. The closest to a DWG specification is the one that ODA has done based on reverse engineering.
OpenDWG specification in RTF format.
The general arrangement of data in an R13/R14/R15 file is as follows:
DWG HEADER VARIABLES
PADDING (R13C3 AND LATER)
IMAGE DATA (PRE-R13C3)
All entities, table entries, dictionary entries, etc. go in this section.
UNKNOWN SECTION (R13C3 AND LATER)
IMAGE DATA (R13C3 AND LATER)
DwgInfoTip that I made is working with the raw binary format to extract DWG properties and show them as an infotip (tooltip) in Windows Explorer. AutoCAD is not even required to be installed for it to work. If it is installed you will see the infotip in file selection dialog boxes like the Open and Save dialog box.