Replicate Layout tries to replicate wrong component layout

Hi,

using the replicate layout script I am running into an error message that I do not know what to make of:
“Source footprint U108 has different number of text items (3) than footprint for replication U329 (2)”
The footprint for replicating U108 is actually U328 and not U329! How can this happen? What can I do about it?
The replication tool has worked great on smaller test layouts, but now I’m stuck working on the real thing. Any help is greatly appreciated!

Tom

P.S.
Apparently, annotations got mixed up as the original sub-sheets and the copied sub-sheets were numbered in a different sequence. I manually changed the sheet sequence of the copy to match the original. Now, both annotate in the same order, BUT…
The error remains. Now, I get the same error message for two identical components with identical footprints, one being the copy of the other! ???

Btw, I am using KiCAD7

Do you mind sharing your project?

Sorry, I cannot share the project.

I could finally fix the problem. It was somehow related to one component.
Deleting it, the problem was gone. Adding it back in, the problem did not come back.

You don’t have to share the whole project for things like this.

Apparently you have narrowed it down to one "component (schematic symbol or footprint?)

If you can create a simple example project which uses that “component”, and add a few resistors (or whatever) so the replicate layout plugin has something to do, then you already have a nice test case if it can reproduce the behavior. And if so, such a project can be used to find the bug in the plugin and fix it.

Well, I deleted the component from the schematic and layout and re-imported the very same component from my library to both and the problem was gone. So, I don’t think I can reproduce the problem with a demo project.

You can probably re-open an older backup (from the backup directory in your project), then copy it to another location, delete most of the project but keep the sheet hierarchy intact, use “Save as …” to save it with a different name, then verify the problem still exist, and voila, you have a test project. Do delete the backup directory from the test project, both to make it smaller, and to erase connections to remnants of your real project.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.