DXF outputs in mils units; CAD software interprets mm

Bug #901001 reported by Rob Maris
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Expired
Undecided
Unassigned

Bug Description

Inventor and qcad intepret dxf units of KiCad exports as mm, while actually KiCad uses mils. As a consequence, enormous sizes are rendered. When dxf is primarily used for plain inspection, you'd not immediately see this in e.q. qcad, because the file is automatically zoomed to window size...

Apparently a unit definition is missing in export files.

Revision history for this message
Lorenzo Marcantonio (l-marcantonio) wrote : Re: [Bug 901001] [NEW] DXF outputs in mils units; CAD software interprets mm

On Tue, Dec 06, 2011 at 11:45:19PM -0000, Rob Maris wrote:
> Public bug reported:
>
> Inventor and qcad intepret dxf units of KiCad exports as mm, while
> actually KiCad uses mils. As a consequence, enormous sizes are rendered.
> When dxf is primarily used for plain inspection, you'd not immediately
> see this in e.q. qcad, because the file is automatically zoomed to
> window size...

Actually in decimils!

> Apparently a unit definition is missing in export files.

The real thing is me that don't know how to do UI programming :D

--
Lorenzo Marcantonio
Logos Srl

Revision history for this message
Rob Maris (maris-rob-x) wrote :

Am 07.12.2011, 08:27 Uhr, schrieb Lorenzo Marcantonio
<email address hidden>:

> On Tue, Dec 06, 2011 at 11:45:19PM -0000, Rob Maris wrote:
>> Public bug reported:
>>
>> Inventor and qcad intepret dxf units of KiCad exports as mm, while
>> actually KiCad uses mils. As a consequence, enormous sizes are rendered.
>> When dxf is primarily used for plain inspection, you'd not immediately
>> see this in e.q. qcad, because the file is automatically zoomed to
>> window size...
>
> Actually in decimils!
>
>> Apparently a unit definition is missing in export files.
>
> The real thing is me that don't know how to do UI programming :D
>

I'm sorry, but I can't judge whether this contribution is sarcasm or not.

Revision history for this message
Lorenzo Marcantonio (l-marcantonio) wrote :

On Wed, Dec 07, 2011 at 08:53:10AM -0000, Rob Maris wrote:
> > The real thing is me that don't know how to do UI programming :D
> >
>
> I'm sorry, but I can't judge whether this contribution is sarcasm or
> not.

Sorry, didn't mean to upset you... the story was something like that:
I added the DXF exporter (it's a plotter, actually!) during a period
when the plot dialogs where overhauled. So it just stuck like that in
its default state.

IIRC there already are the scaling factor for a customizable export,
they just are not user visible (since, as I said, I'm no a wx GUI
expert).

I'd put it as a wishlist until somebody wants to touch the plot dialog.

--
Lorenzo Marcantonio
Logos Srl

Revision history for this message
Rob Maris (maris-rob-x) wrote :

> Sorry, didn't mean to upset you... the story was something like that:
> I added the DXF exporter (it's a plotter, actually!) during a period
> when the plot dialogs where overhauled. So it just stuck like that in
> its default state.

Lorenzo, thanks for clarifying things.

> IIRC there already are the scaling factor for a customizable export,
> they just are not user visible (since, as I said, I'm no a wx GUI
> expert).

Well, I don't think that an extension to the GUI is necessary. I'd suggest
you to a simple patch in your exporter that defines the unit of all
metrics at the start of a dxf file. At least I found some variables that
can be used to specify angle units, metrics units etc. I'd believe that a
qcad or comparable 2D programs would interpret correctly when the units
are specified. I treat it as a second step to output all stuff in mm,
perhaps when anybody's going to add a bit rounding to all mm output of
KiCad to max. three digits instead of four.

-Rob

Martin Errenst (imp-d)
tags: added: pcbnew plotting
Revision history for this message
Novak Tamas (novak-7) wrote :

It's the opposite actually: KiCad exports mm's, and MCAD (Creo 2.0 for me) loads the pure numbers as inches. KiCad's 70mm PCB looks 1778mm in Creo.
DXF file contains a header, where any number of system variables are held. If KiCad DXF exporter writes something into the file (like UNIT=mm), a lot of different MCAD's should be checked if they receive such a parameter (and from which codewords, which format...)
In Creo it's easy to change the units "on the fly" without converting values (70 inches will be changed into 70 mm's)

Changed in kicad:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for KiCad because there has been no activity for 60 days.]

Changed in kicad:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.