MitjaNemec / Kicad_action_plugins

Kicad action plugins
413 stars 62 forks source link

Replicate layout do not work after kicad update to V6 nightlies #55

Closed Joelguerreiro closed 4 years ago

Joelguerreiro commented 5 years ago

replicate_layout.log

MitjaNemec commented 5 years ago

On which KiCad version are you running the plugin? Which python version do you use?

Currently only 5.1.x branch is supported by all my plugins.

Joelguerreiro commented 5 years ago

Hello,

Sorry for not sending the details. I thought the log already contained it. Kicad 6.0 Python 2.7.12 I think my system does not support your plugins then. Thank you anyways.

Em qua, 3 de jul de 2019 às 03:53, Mitja Nemec notifications@github.com escreveu:

On which KiCad version are you running the plugin? Which python version do you use?

Currently only 5.1.x branch is supported by all my plugins.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MitjaNemec/Kicad_action_plugins/issues/55?email_source=notifications&email_token=ACN2DPEHRPU3VNYELMXIKCLP5REGHA5CNFSM4H47TG6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZDO6CI#issuecomment-507965193, or mute the thread https://github.com/notifications/unsubscribe-auth/ACN2DPAINFF3QCLK6FIYKJLP5REGHANCNFSM4H47TG6A .

-- Joel Guerreiro

MitjaNemec commented 5 years ago

Hi,

I can not get the KiCad information into the log as the pcbnew python API does not support this, But I could get the python version into it.

As for the plugin, yes it seems that the method pcbnew.MODULE.PadsList() is either not existent anymore or is just not exposed via SWIG. I don't have a clue why was it removed since as far as I know currently development has been focused elsewhere.

Anyhow I intend to support only the 5.1.x branch since the V6 branch is under heavy development and I'd rather wait for the rate of change to settle down. So I'll defer dealing with this until 6.0 is officially released.

Sorry, but you are on your own. You might get by with replacing pcbnew.MODULE.PadsList() with pcbnew.MODULE.Pads()

MitjaNemec commented 5 years ago

Hi @Joelguerreiro

I've replaced all the instances of using pcbnew.MODULE.PadsList() to pcbnew.MODULE.Pads() and it works in V5.1.x.

So if you don't mind testing in in V6 nightlies, that would be great.