← Back to team overview

kicad-developers team mailing list archive

Re: DXF import only works in default Canvas.

 

Hi Maciej and Marco,
I tried the new version with Marco's patch but applying the patch to the new code I had a rejected so I'm not sure I have the right code to test it.

Anyway, I have the same problem in modedit: importing the file with filled polygons selected it crashes changing from legacy to OpenGL...

I attached Antenna.dxf that I used to test it

I tried to manually edit the pcb file converting the polyline to a fill zone (copying the polygon points from the imported polyline) and the fill zone can be moved around, connected to a net and it seems to be displayed correctly also in 3d-viewer...

Maybe importing poly-line to fill zone could be a partial solution to import dxf polyline path to the board...

I attached the pcb board with the 'Antenna' filled zone

Maurice

On 03/08/2015 21.20, Maciej Sumiński wrote:
Hi Maurice,

I have just committed another patch for the problem. If there are still
issues, could you send me the .dxf file that crashes pcbnew?

Regards,
Orson

On 08/01/2015 10:26 PM, easyw wrote:
Hi Maciej,

I tried the version 6023 in win8 64 with the Marco's patch...
in pcbnew the import now is done also in OpenGL, but the shape is not
shown in legacy canvas (I'm importing with fill polygons selected).
In module editor if I import the shape I get a crash

@Marco
in pcbnew when the shape is imported and shown, after selecting a block,
it is not possible to move it
I cannot test in modedit because I get a crash after switching to OpenGL

thanks
Maurice


On 30/07/2015 14.25, Maciej Sumiński wrote:
Hi Marco,

Thank you for reporting the issue. It should be fixed in revision 6023.

Regards,
Orson

On 07/30/2015 02:40 AM, Marco Hess wrote:
Hi Maciej,

I am testing this on Windows version: (2015-07-11 BZR 5925, Git
c291b88)-product release build

In all cases I have the DXF import dialog (both PCB new and module
editor).

It is just when the OpenGL canvas is active, clicking Ok in the dialog,
there is no import happening. The 'Save' icon remains off/disabled and
there is nothing added to the PCB file.

When the legacy canvas is active, the import succeeds. The 'Save' icon
comes active and you can see the imported lines in the PCB file. You can
then switch to OpenGL and the shape is shown.

Attached the antenna DXF that I am trying this with.

Marco

On 29-Jul-15 22:25, Maciej Sumiński wrote:
On 07/29/2015 12:25 PM, Marco Hess wrote:
[snip]
But the DXF import only working in legacy mode and not in the other
modes is a
definitely a bug I think.

Marco
Hi Marco,

I have just tried importing the mentioned file and it worked here.
Could
you give some more details about the problem? What happens when you
choose File->Import->DXF file? Do you see the import DXF dialog? Does
the imported DXF shape appear at all?

Regards,
Orson






_______________________________________________
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




_______________________________________________
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

(kicad_pcb (version 4) (host pcbnew "(2015-08-03 BZR 6046)-product")

  (general
    (links 0)
    (no_connects 0)
    (area 188.5011 85.0036 198.501101 105.003601)
    (thickness 1.6)
    (drawings 1)
    (tracks 0)
    (zones 0)
    (modules 0)
    (nets 1)
  )

  (page A4)
  (layers
    (0 F.Cu signal)
    (1 In1.Cu signal)
    (2 In2.Cu signal)
    (31 B.Cu signal)
    (32 B.Adhes user)
    (33 F.Adhes user)
    (34 B.Paste user)
    (35 F.Paste user)
    (36 B.SilkS user)
    (37 F.SilkS user)
    (38 B.Mask user)
    (39 F.Mask user)
    (40 Dwgs.User user)
    (41 Cmts.User user)
    (42 Eco1.User user)
    (43 Eco2.User user)
    (44 Edge.Cuts user)
  )

  (setup
    (last_trace_width 0.3048)
    (user_trace_width 0.508)
    (user_trace_width 0.762)
    (trace_clearance 0.254)
    (zone_clearance 0.508)
    (zone_45_only no)
    (trace_min 0.254)
    (segment_width 0.15)
    (edge_width 0.15)
    (via_size 0.9652)
    (via_drill 0.508)
    (via_min_size 0.889)
    (via_min_drill 0.508)
    (user_via 1.397 0.889)
    (user_via 1.778 0.889)
    (uvia_size 0.6604)
    (uvia_drill 0.4064)
    (uvias_allowed no)
    (uvia_min_size 0.508)
    (uvia_min_drill 0.127)
    (pcb_text_width 0.3)
    (pcb_text_size 1.5 1.5)
    (mod_edge_width 0.18)
    (mod_text_size 1.5 1.5)
    (mod_text_width 0.15)
    (pad_size 1.524 1.524)
    (pad_drill 0.9)
    (pad_to_mask_clearance 0.0762)
    (aux_axis_origin 0 0)
    (visible_elements 7FFFF77F)
    (pcbplotparams
      (layerselection 0x00100_00000000)
      (usegerberextensions false)
      (excludeedgelayer true)
      (linewidth 0.150000)
      (plotframeref false)
      (viasonmask false)
      (mode 1)
      (useauxorigin false)
      (hpglpennumber 1)
      (hpglpenspeed 20)
      (hpglpendiameter 15)
      (hpglpenoverlay 2)
      (psnegative false)
      (psa4output false)
      (plotreference true)
      (plotvalue true)
      (plotinvisibletext false)
      (padsonsilk false)
      (subtractmaskfromsilk false)
      (outputformat 3)
      (mirror false)
      (drillshape 0)
      (scaleselection 1)
      (outputdirectory ""))
  )

  (net 0 "")

  (net_class Default "This is the default net class."
    (clearance 0.254)
    (trace_width 0.3048)
    (via_dia 0.9652)
    (via_drill 0.508)
    (uvia_dia 0.6604)
    (uvia_drill 0.4064)
  )

  (net_class PWR ""
    (clearance 0.254)
    (trace_width 0.762)
    (via_dia 1.778)
    (via_drill 0.889)
    (uvia_dia 0.6604)
    (uvia_drill 0.4064)
  )

  (net_class PWR2 ""
    (clearance 0.254)
    (trace_width 1.016)
    (via_dia 2.286)
    (via_drill 1.143)
    (uvia_dia 0.6604)
    (uvia_drill 0.4064)
  )

  (net_class mid ""
    (clearance 0.254)
    (trace_width 0.508)
    (via_dia 1.27)
    (via_drill 0.889)
    (uvia_dia 0.6604)
    (uvia_drill 0.4064)
  )

  (net_class mini ""
    (clearance 0.2032)
    (trace_width 0.254)
    (via_dia 1.143)
    (via_drill 0.762)
    (uvia_dia 0.6604)
    (uvia_drill 0.4064)
  )

  (gr_poly (pts (xy 188.5011 104.0036) (xy 188.5011 105.0036) (xy 198.5011 105.0036) (xy 198.5011 94.0036) (xy 194.5011 94.0036) (xy 194.5011 93.0036) (xy 198.5011 93.0036) (xy 198.5011 90.0036) (xy 194.5011 90.0036) (xy 194.5011 89.0036) (xy 198.5011 89.0036) (xy 198.5011 85.0036) (xy 193.5011 85.0036) (xy 193.5011 87.0036) (xy 197.5011 87.0036) (xy 197.5011 88.0036) (xy 193.5011 88.0036) (xy 193.5011 91.0036) (xy 197.5011 91.0036) (xy 197.5011 92.0036) (xy 193.5011 92.0036) (xy 193.5011 95.0036) (xy 197.5011 95.0036) (xy 197.5011 97.0036) (xy 188.5011 97.0036) (xy 188.5011 98.0036) (xy 197.5011 98.0036) (xy 197.5011 104.0036) (xy 188.5011 104.0036)) (layer B.Cu) (width 0.0001))

  (zone (net 0) (net_name "") (layer B.Cu) (tstamp 0) (hatch edge 0.508)
    (connect_pads (clearance 0.508))
    (min_thickness 0.03)
    (fill yes (arc_segments 16) (thermal_gap 0.508) (thermal_bridge_width 0.508))
    (polygon
      (pts
        (xy 188.5011 104.0036) (xy 188.5011 105.0036) (xy 198.5011 105.0036) (xy 198.5011 94.0036) (xy 194.5011 94.0036) (xy 194.5011 93.0036) (xy 198.5011 93.0036) (xy 198.5011 90.0036) (xy 194.5011 90.0036) (xy 194.5011 89.0036) (xy 198.5011 89.0036) (xy 198.5011 85.0036) (xy 193.5011 85.0036) (xy 193.5011 87.0036) (xy 197.5011 87.0036) (xy 197.5011 88.0036) (xy 193.5011 88.0036) (xy 193.5011 91.0036) (xy 197.5011 91.0036) (xy 197.5011 92.0036) (xy 193.5011 92.0036) (xy 193.5011 95.0036) (xy 197.5011 95.0036) (xy 197.5011 97.0036) (xy 188.5011 97.0036) (xy 188.5011 98.0036) (xy 197.5011 98.0036) (xy 197.5011 104.0036) (xy 188.5011 104.0036)      )
    )
    (filled_polygon
      (pts
        (xy 188.5011 104.0036) (xy 188.5011 105.0036) (xy 198.5011 105.0036) (xy 198.5011 94.0036) (xy 194.5011 94.0036) (xy 194.5011 93.0036) (xy 198.5011 93.0036) (xy 198.5011 90.0036) (xy 194.5011 90.0036) (xy 194.5011 89.0036) (xy 198.5011 89.0036) (xy 198.5011 85.0036) (xy 193.5011 85.0036) (xy 193.5011 87.0036) (xy 197.5011 87.0036) (xy 197.5011 88.0036) (xy 193.5011 88.0036) (xy 193.5011 91.0036) (xy 197.5011 91.0036) (xy 197.5011 92.0036) (xy 193.5011 92.0036) (xy 193.5011 95.0036) (xy 197.5011 95.0036) (xy 197.5011 97.0036) (xy 188.5011 97.0036) (xy 188.5011 98.0036) (xy 197.5011 98.0036) (xy 197.5011 104.0036) (xy 188.5011 104.0036)
      )
    )
  )
)
  0
SECTION
  2
HEADER
  9
$ACADVER
  1
AC1009
  0
ENDSEC
  0
SECTION
  2
ENTITIES
  0
POLYLINE
  8
COPPER (ANNEALED)
 66
1
 39
0
 10
0.000000
 20
0.000000
 30
0.000000
 70
1
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
40.000000
 20
1.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
40.000000
 20
0.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
50.000000
 20
0.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
50.000000
 20
11.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
46.000000
 20
11.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
46.000000
 20
12.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
50.000000
 20
12.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
50.000000
 20
15.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
46.000000
 20
15.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
46.000000
 20
16.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
50.000000
 20
16.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
50.000000
 20
20.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
45.000000
 20
20.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
45.000000
 20
18.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
49.000000
 20
18.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
49.000000
 20
17.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
45.000000
 20
17.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
45.000000
 20
14.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
49.000000
 20
14.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
49.000000
 20
13.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
45.000000
 20
13.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
45.000000
 20
10.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
49.000000
 20
10.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
49.000000
 20
8.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
40.000000
 20
8.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
40.000000
 20
7.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
49.000000
 20
7.000000
 30
0.000000
 70
0
 42
0
  0
VERTEX
  8
COPPER (ANNEALED)
 39
0
 10
49.000000
 20
1.000000
 30
0.000000
 70
0
 42
0
  0
SEQEND
  8
COPPER (ANNEALED)
  0
ENDSEC
  0
EOF

References