kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #15088
Re: Panelizing in python almost ready.
In response to a message written on 10.10.2014 15:49, from Nick Østergaard:
> Hello
>
> I just tried it on the sonde xilinx demo board with kicad and it
> worked there. Although I pulled the latest updated from your repo, I
> do not see the error in the terminal, but the text window inside your
> qui. I will send you the board to test with privately.
- Xilinx demo board panelization work after coping to dir, where user has
permissions to write.
- Your file - python console log:
>>> brd=pcbnew
>>> pcb=brd.GetBoard()
>>> draws=list(pcb.GetDrawings())
>>> len_draws=len(draws)
>>> for n in range(len_draws):
... print("%i-th Draw:%s" % (n, draws[n]))
...
[...Cut...]
30-th Draw:<pcbnew.DRAWSEGMENT; proxy of <Swig Object of type 'DRAWSEGMENT *' at
0x7f5b7a1cc540> >
31-th Draw:None
32-th Draw:None
33-th Draw:None
34-th Draw:None
35-th Draw:None
36-th Draw:<pcbnew.TEXTE_PCB; proxy of <Swig Object of type 'TEXTE_PCB *' at
0x7f5b7a1cc390> >
37-th Draw:<pcbnew.TEXTE_PCB; proxy of <Swig Object of type 'TEXTE_PCB *' at
0x7f5b7a1cc570> >
38-th Draw:<pcbnew.DRAWSEGMENT; proxy of <Swig Object of type 'DRAWSEGMENT *' at
0x7f5b7a1cc5d0> >
39-th Draw:<pcbnew.DRAWSEGMENT; proxy of <Swig Object of type 'DRAWSEGMENT *' at
0x7f5b7a1cc600> >
40-th Draw:<pcbnew.DRAWSEGMENT; proxy of <Swig Object of type 'DRAWSEGMENT *' at
0x7f5b7a1cc5a0> >
>>>
I've looked in your project with text editor - missing draws are :
(target plus (at 173.984 71.016) (size 10) (width 0.2) (layer Edge.Cuts)
(tstamp 51DD538F))
(target plus (at 68.984 71.016) (size 10) (width 0.2) (layer Edge.Cuts)
(tstamp 51DD538B))
(target plus (at 48.984 116.016) (size 10) (width 0.2) (layer Edge.Cuts)
(tstamp 51DD5376))
(target plus (at 198.984 136.016) (size 10) (width 0.2) (layer Edge.Cuts)
(tstamp 51DD5373))
(target plus (at 223.984 116.016) (size 10) (width 0.2) (layer Edge.Cuts))
Problem is in KiCAD's python scripting interface - and needs to be fixed by
someone from KiCAD dev team.
Workaround - work on file copy, in which you remove all target draws.
--
Best Regards,
LordBlick
References
-
Panelizing in python almost ready.
From: LordBlick, 2014-10-03
-
Re: Panelizing in python almost ready.
From: LordBlick, 2014-10-03
-
Re: Panelizing in python almost ready.
From: jp charras, 2014-10-03
-
Re: Panelizing in python almost ready.
From: Wayne Stambaugh, 2014-10-03
-
Re: Panelizing in python almost ready.
From: LordBlick, 2014-10-03
-
Re: Panelizing in python almost ready.
From: LordBlick, 2014-10-07
-
Re: Panelizing in python almost ready.
From: Nick Østergaard, 2014-10-09
-
Re: Panelizing in python almost ready.
From: LordBlick, 2014-10-09
-
Re: Panelizing in python almost ready.
From: Adam Wolf, 2014-10-10
-
Re: Panelizing in python almost ready.
From: LordBlick, 2014-10-10
-
Re: Panelizing in python almost ready.
From: Nick Østergaard, 2014-10-10