"Replicate layout" plugin for KiCad nightly version 7.99?

Hi,
I have a tendency to develop live projects with nightly builds of kicad now living on the edge like that I was wondering if there’s a version of RL(Replicate layout) Plugin for the latest kicad build sins the install button is ghosted in the “Addon manager” I tryed installing it from a file from here: https://github.com/MitjaNemec/ReplicateLayout/releases/tag/2.1.2

It showed me an error message of a few tries and discouraged me from try to debug it (haven’t mingled with kicad dev stuff for a long time and never been a pro at it either)

So I came here to ask if there is a version of it for the Nightly build of kicad 7.99 outhere?

Or any suggestions on how to adapt the stable RP plugin version to nightly?

No, and as the nightly version python bindings tend to change I don’t plan to support the nightly KiCad releases.

Look at the errors reported, look at the 7.0 python bindings docs (https://docs.kicad.org/doxygen-python-7.0/namespacepcbnew.html) and 7.99 python binding docs (https://docs.kicad.org/doxygen-python-nightly/namespacepcbnew.html) and figure out what you need to change.

If you get it working, I am open to creating a 7.99 branch in the main repo, where you could merge the changes.

2 Likes

Does it somewhat officially support 7.0? I get errors like these when trying to open the plugin:

Whoa, you seem to be running quite an old version of the plugin. You should remove this and reinstall the plugin via PCM.

For future, I preffer that user report the issue on the plugins github page under issues.

Thanks for replying anyways, appreciate it.

It’s strange because the plugin was downloaded from github, and I tried posting an issue there but couldn’t find the button to do so. There was a banner saying the project was archived or something.

I’ll use PCM

Yeah, I should have been more specific about the changes.

I’ve just added a notice to the Github landing page

1 Like

The method GetProperty(foo) is not exposed anymore via Python. Now it is necessary to use GetSheetname and so on.

O have proposed a commit for v7.99.

I was able to get this working with the latest kicad 7.99 by making the changes described. I can’t attach my new replicate_layout.py as I am a new user. Instead, I’ve noted changed lines below. It is sourced from the latest gihub release.

Lines 133 & 134

                sheet_file = fp.GetSheetfile()
                sheet_name = fp.GetSheetname()

Lines 166 & 167

                sheet_file = fp.GetSheetfile()
                sheet_name = fp.GetSheetname()

Line 641

            if type(item) is pcbnew.LAYER_FP_TEXT:

2 Likes

For easier installation I’ve prepared a PCM compatiple package. Available at Release 7.99 compatible release · MitjaNemec/ReplicateLayout · GitHub

2 Likes