EEVblog Electronics Community Forum

Electronics => PCB/EDA/CAD => KiCad => Topic started by: opampsmoker on October 26, 2020, 10:18:52 am

Title: Need to copy and paste a sub-circuit 114 times.
Post by: opampsmoker on October 26, 2020, 10:18:52 am
Hi,
I have to do a schem with 114 small subcircuits. (each subcircuit is the same as the others) . I wish to draw the sub-circuit once, then have it in a “box”, then just paste that box 114 times. The only way I can see to do this is with  hierarchical sheets, as that gives me the “subcircuit in a box”…however, that also produces a separate schem sheet for each box (so that’s 114 schem sheets) and I don’t want that, so please advise on how to do this?
Title: Re: Need to copy and paste a sub-circuit 114 times.
Post by: tox3 on October 26, 2020, 12:20:15 pm
Hierarchial sheets is the best solution for this.
But you can also select all components and copy paste them multiple times. But if you need to fix something after copy paste, then you would have to redo it all
Title: Re: Need to copy and paste a sub-circuit 114 times.
Post by: langwadt on October 26, 2020, 12:30:57 pm
Hierarchial sheets is the best solution for this.
But you can also select all components and copy paste them multiple times. But if you need to fix something after copy paste, then you would have to redo it all

and with hierarchical sheets there are script to replicate layout
Title: Re: Need to copy and paste a sub-circuit 114 times.
Post by: Doctorandus_P on October 26, 2020, 12:43:32 pm
Maybe you can get some usefull hints when you read this:
https://forum.kicad.info/t/copy-and-paste-sub-circuit-114-times/25573/3 (https://forum.kicad.info/t/copy-and-paste-sub-circuit-114-times/25573/3)
Title: Re: Need to copy and paste a sub-circuit 114 times.
Post by: John B on December 16, 2020, 02:37:17 am
I actually have almost the same problem. I did get this script working on 5.1.8

https://github.com/MitjaNemec/Kicad_action_plugins

Is it possible to group footprints in pcbnew such that when you click on one item in the group it will move them all as one block? Ie, keeping all the relative positions of footprint in each sub-circuit the same, and not allowing you to move the associated footprints and tracks out of position relative to one another?