Closed Miceuz closed 1 year ago
Altering the duplication to cast - new_track = track.Duplicate().Cast()
makes it work.
Thanks for reporting and a solution. This is probably due to https://gitlab.com/kicad/code/kicad/-/issues/14460.
As I use Duplicate
also for zones, text and drawings, this will have to be check a bit more thoroughly. And I'll have to think about how to implement the fix so the plugin will be compatible with pre and post 7.0.2 python bindings
Which is the newest version of KiCad where does the ReplicateLayout work?
The 2.x.y versions of the plugin should work wit 7.0.1
Which is the newest version of KiCad where does the ReplicateLayout work?
@BrMisha 7.0.0
First of all, thanks for reporting this.
As it turns out this is due to a bug in KiCad. It got introduce just before the 7.0.2 release with 8e579ec8 and got fixed just after the 7.0.2 was tagged in 7843e6a7.
Anyhow, the fix for this is in 2.0.12 release, which is available for installation from file and should be available in PCM in a couple of days.
My KiCad version:
I have pinpointed the problem to a
Duplicate
call - it returns aBOARD_ITEM
that does not haveSetNetCode
method, not aPCB_TRACK
as expected.replicate_layout.log