Re: [Kicad-developers] dxf: import 4 arcs

2015-09-09 Thread Marco Hess
I 'rewrote' the DXF R12 conversion procedure for the manual as follows. I checked it like this and this works with the original DXF file from Marcos. Does this reflect the general understanding? Notes on importing DXF files The *DXF* import capability in KiCad is limited as there is no

Re: [Kicad-developers] dxf: import 4 arcs

2015-09-09 Thread Nick Østergaard
I think that kind of text is better suited in the DXF import dialog itself. 2015-09-09 23:08 GMT+02:00 easyw : > I just added > > AddMenuItem( submenuImport, ID_GEN_IMPORT_DXF_FILE, > _( "&DXF File (R12 best supported (no polylines), units mm)" ), > > to my import menu in > menubar_pcbfra

Re: [Kicad-developers] dxf: import 4 arcs

2015-09-09 Thread easyw
I just added AddMenuItem( submenuImport, ID_GEN_IMPORT_DXF_FILE, _( "&DXF File (R12 best supported (no polylines), units mm)" ), to my import menu in menubar_pcbframe.cpp That is an easy reminder each time I use import dxf function :) On 09/09/2015 22.52, LordBlick wrote: In response

Re: [Kicad-developers] dxf: import 4 arcs

2015-09-09 Thread LordBlick
In response to a message written on 09.09.2015, 20:53, from easyw: I still consider that a message to be added as warning in the import dialog saying "use R12 dxf version without polyline" would be useful Maybe: „Polyline detected, try to explode/split it in LibreCAD/qcad and save in R12 dxf ver

Re: [Kicad-developers] dxf: import 4 arcs

2015-09-09 Thread easyw
I still consider that a message to be added as warning in the import dialog saying "use R12 dxf version without polyline" would be useful On 09/09/2015 18.31, LordBlick wrote: In response to a message written on 09.09.2015, 17:56, from easyw: A good solution is to open palta2.dxf, select the

Re: [Kicad-developers] dxf: import 4 arcs

2015-09-09 Thread LordBlick
In response to a message written on 09.09.2015, 17:56, from easyw: A good solution is to open palta2.dxf, select the object and explode it (I'm using LibreCAD 2.0.8 in windows: Select object, Menu Modify Explode) Seems that is kind of Berzier Curve, not few arcs. Probably that shape needs to

Re: [Kicad-developers] dxf: import 4 arcs

2015-09-09 Thread LordBlick
In response to a message written on 09.09.2015, 13:59, from Marco Hess: 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 d

Re: [Kicad-developers] dxf: import 4 arcs

2015-09-09 Thread Marco Hess
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 tha

Re: [Kicad-developers] dxf: import 4 arcs

2015-09-09 Thread Cirilo Bernardo
3D MCAD will generally represent even simple circular arcs as B-Splines, so it it likely that your arcs were written to DXF as B-Splines or Bezier curves. Use librecad to draw the arcs instead; 2D CADs will generally represent conics as a Euclidean formulation on a Cartesian plane. Re-exporting wil

Re: [Kicad-developers] dxf: import 4 arcs

2015-09-09 Thread easyw
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

Re: [Kicad-developers] dxf: import 4 arcs

2015-09-08 Thread Marco Hess
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

Re: [Kicad-developers] dxf: import 4 arcs

2015-09-08 Thread Marco Hess
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 wr

Re: [Kicad-developers] dxf: import 4 arcs

2015-09-08 Thread Marco Hess
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

Re: [Kicad-developers] dxf: import 4 arcs

2015-09-08 Thread Marcos Chaparro
> > 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: htt

Re: [Kicad-developers] dxf: import 4 arcs

2015-09-08 Thread LordBlick
In response to a message written on 09.09.2015, 05:24, from Marcos Chaparro: I'm trying to import a simple dxf outline that is made from 4 arcs. The figure was designed in freecad, and exported as dxf. Importing that dxf in kicad didn't work, so I opened the dxf in librecad and saved it as DXF

[Kicad-developers] dxf: import 4 arcs

2015-09-08 Thread Marcos Chaparro
Hi, I'm trying to import a simple dxf outline that is made from 4 arcs. The figure was designed in freecad, and exported as dxf. Importing that dxf in kicad didn't work, so I opened the dxf in librecad and saved it as DXF R12, and the result was the same. I know the dxf import is not fully suppo