Units of measure in dxf import

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: Units of measure in dxf import

Post by Roy_043 »

In mm.dxf the MEASUREMENT variable is wrongly set to 0. It must be set to 1 for metric files. The INSUNITS variable is set to 4, which is correct, and this variable should actually have priority over MEASUREMENT.

This is all with the new DXF importer. The legacy DXF importer ignores units.
Nabilakroud
Posts: 6
Joined: Mon Jun 27, 2022 11:51 pm

Re: Units of measure in dxf import

Post by Nabilakroud »

Roy_043 wrote: Sat Jul 02, 2022 8:32 pm In mm.dxf the MEASUREMENT variable is wrongly set to 0. It must be set to 1 for metric files...
✅ Well done,
I changed inside my file mm.dxf the following lines

Code: Select all

$MEASUREMENT 
70
   0 
9
by

Code: Select all

$MEASUREMENT
70
   1 
9 
and it worked correctly, maybe is a LibreCAD bug.

Thank you very much for your help.
Post Reply