DWG File format specification
It might be very handy if you want to write a script or piece of software which will automate some processes related to DWG files https://www.scan2cad.com/dwg/file-spec/ Dirtect link: https://www.opendesign.com/files/guestdownloads/OpenDesign_Specification_for_.dwg_files.pdf