← Back to team overview

kicad-developers team mailing list archive

Re: dxf: import 4 arcs

 

Hi Maurice,

The interesting issue then is that the procedure of 'simply' importing in LibreCad and then "Save As' DXF R12 as currently documented in the 'pcbnew' manual did not fix the issue.

Other than 'redrawing' as you did, is there another 'fool proof' way that this could have worked that is worth putting in the documentation?

At this stage I don't fully understand as to why the save in R12 format did not fix it.

Marco

On 09-Sep-15 18:54, easyw wrote:
Hi Marcos and Marco,

please find attached the dxf that I did from scratch using 4 arcs in LibreCAD
I copied manually the path from palta2.dxf, then exported in dxf R12
The result is fine in kicad and I get a closed path also for Edge cuts.

in kicad there are 4 arcs
(gr_arc (start 178.564202 123.937945) (end 153.273203 83.107373) (angle -26.04011298) (layer Edge.Cuts) (width 0.1)) (gr_arc (start 156.68577 88.642784) (end 162.837792 90.749678) (angle -140.5586133) (layer Edge.Cuts) (width 0.1)) (gr_arc (start 196.246745 102.229265) (end 162.837792 90.749678) (angle -22.2858684) (layer Edge.Cuts) (width 0.1)) (gr_arc (start 148.500893 105.004408) (end 137.915937 98.354967) (angle -215.4739741) (layer Edge.Cuts) (width 0.1))

If you search inside palta2.dxf you find POLYLINE that are not supported by kicad

attached a comparison of dxf files

I suspect that the problem is when exporting dxf from FreeCAD...
I had some trouble with a different board path exported from FreeCAD...
In FreeCAD you cannot select which version of dxf you want to use, if I remember correctly...

Maurice







On 09/09/2015 07.43, Marco Hess wrote:
Definitely a problem with the DXF importer I would say as the resulting
data in the PCB file are just  straight line segments:

   (gr_line (start 42.68541 28.017695) (end 52.25 35.66) (layer
Edge.Cuts) (width 0.1))
   (gr_line (start 27.328145 43.265288) (end 42.68541 28.017695) (layer
Edge.Cuts) (width 0.1))
   (gr_line (start 50.392159 49.187096) (end 27.328145 43.265288) (layer
Edge.Cuts) (width 0.1))
   (gr_line (start 52.25 35.66) (end 50.392159 49.187096) (layer
Edge.Cuts) (width 0.1))

Marco

On 09-Sep-15 14:58, Marco Hess wrote:
Hi Marcos,

Apologies, but I did not see your original email where you said you
tried the R12 format alreayd.

I tried it as well and and it indeed seems to do something strange
with just connecting the end points of the circles or something.

Regards,

Marco

On 09-Sep-15 14:29, Marco Hess wrote:
KiCad DXF import for those kind of segments don't work very well. You
need to re-export the DXF in a DXF R12 format.

You can do that easily by opening the DXF in LibreCAD and then
reexporting in R12 format.

See http://docs.kicad-pcb.org/Pcbnew/Pcbnew.html#_creating_a_board

Section 6.1.2 and 6.1.3.

Cheers,

Marco


On 09-Sep-15 14:24, Marcos Chaparro wrote:

        Seems that is kind of Berzier Curve, not few arcs. Probably
        that shape needs to

    split to single arcs before import.


Um, I don't know if its converted to a bezier curve, but I'm sure I
made it from 4 arcs, see attached.


_______________________________________________
Mailing list:https://launchpad.net/~kicad-developers
Post to     :kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe :https://launchpad.net/~kicad-developers
More help   :https://help.launchpad.net/ListHelp

--
Marco Hess
Through IP Pty. Ltd. - AUSTRALIA
www.through-ip.com   |marco.hess@xxxxxxxxxxxxxx
p: +61 407 78 55 66 | f: +61 8 8121 6191


_______________________________________________
Mailing list:https://launchpad.net/~kicad-developers
Post to     :kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe :https://launchpad.net/~kicad-developers
More help   :https://help.launchpad.net/ListHelp



_______________________________________________
Mailing list:https://launchpad.net/~kicad-developers
Post to     :kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe :https://launchpad.net/~kicad-developers
More help   :https://help.launchpad.net/ListHelp

--
Marco Hess
Through IP Pty. Ltd. - AUSTRALIA
www.through-ip.com   |marco.hess@xxxxxxxxxxxxxx
p: +61 407 78 55 66 | f: +61 8 8121 6191



_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp



_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

--
Marco Hess
Through IP Pty. Ltd. - AUSTRALIA
www.through-ip.com  | marco.hess@xxxxxxxxxxxxxx
p: +61 407 78 55 66 | f: +61 8 8121 6191


Follow ups

References