Forcing DXF Export to use INSUNITS

No help with logging I’m afraid, but let me know if you come up with something you’d like me to look at

Thanks for keeping this open. I’ve created another, simple, file that exports without INSUNITS. I exited Rhino and reloaded with the saved file and could replicate the behavior.

I created this on
rhino: 5.1 (5B161)
osx: 10.11.2 (15C50)

I’ve attached a .zip file with the 3dm, DXF, and “fixed” DXF. I fixed it by editing the DXF and adding these lines following the INSBASE entry

$INSUNITS
70
4
9

Looking at another DXF exporter I use, I find that there are two other items included between INSBASE and EXTMIN but I don’t if they’re useful or just decoration:

$MEASUREMENT
70
1
9
$UNITMODE
70
0
9
$INSUNITS
70
4
9

bug-report-20160101.zip (6.1 MB)

@jet - Thanks for the example.
I see that you exported to a Release 14 version of the dxf file.
INSUNITS was introduced in AutoCAD in Release 2000, I believe, in conjunction with DesignCenter.
INSUNITS isn’t written to versions before ACAD 2000, but it is written to ACAD 2000 files and later.

Glad it’s that simple, thanks. I’ll change my custom dxf export configs.