I started by checking the MEASUREMENT variable, but it was set to 0 (inches) on documents that have Settings->Units set to “mm”.
INSUNITS of 4 is what I’m expecting for mm documents, but my DXF reader can handle other units as well or throws a valid error message about things like “Light Years”.