Hi all,
I’m laying out a board, but my Replicate Layout plugin no longer works. It basically just does nothing. I have a feeling this can be related to switching to Python 3 vs 2.7 on my Mac. I’m using Kicad 5.1.2-1 on macOS Big Sur (11.2.3). Enclosed is my replicate_layout.log file and according to that, the plugin works fine (but it still does nothing). The items to replicate are in a Hierical sheet - the same sheet for all 8 stepper motors. Enclosed is a picture of the section I want to replicate as well as a non-replicated section.
It shouldn’t be. As you can see in the log file, KiCad uses python2 there (because it has its own python interpreter on Mac).
It’s difficult to say anything definitive based on the log, but there’s some problem in “04-13 11:05:05 replicate_layout.replicatelayout 994:Starting replication of sheets: [] on level: []”
The lists of sheets and levels are empty.
Before saying this could be a bug in the plugin, can you update your KiCad installation and the plugin? KiCad version is quite old.
KiCad 5.1.2 is a very old version and KiCad on macOS still uses a bundled Python 2.7 ( you can check this by pulling up a Python console in pcbnew and it will show you it’s running Python 2.7)
@MitjaN Not sure what you mean? As far as I know, you do not select a sheet using this plugin. You select a single component in Pcbnew that is part of the layout you want to replicate. The plugin will then look up what sheet this component belongs to and use that to lay out all other items that use the same sheet.
You should be able to select which sheets you propagate the changes to. That way you can have part of the identical sheets have the same layout while others can have different layout.
I don’t have the plugin at hand, but there should be a list of sheets (with the corresponding anchor component reference designators) in the UI.
That was the problem. Works great now. I simply forgot to click the sheet I was replicating. It sort of looked selected since there only was one. Once I clicked it, all the other sheets showed up as they should… Thanks all!