Author Topic: Duplicate / Identical layout blocks?  (Read 2404 times)

0 Members and 1 Guest are viewing this topic.

Offline paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 4038
  • Country: gb
Duplicate / Identical layout blocks?
« on: February 25, 2018, 02:52:07 pm »
I have probably too many projects on the list at the moment, but...

I'm making a 3 stereo input audio mixer.  I have a hierarchical sheet containing 3 LineInputStage schematics.

I found I could get them all refer to the same underlying sheet and can still be annotated globally.  I haven't tried wiring them up yet though.

Anyway, my question.

Is there currently any sensible way to manage these groups in PCBNew?  When I import the netlist it correctly places all three sets of components on the board.  However it would be "nice" if I could create a layout for one of them, then duplicate it to complete the other two.

Googling reveals this was not available in past versions but it's harder to find if it exists in newer versions.
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 4414
  • Country: dk
Re: Duplicate / Identical layout blocks?
« Reply #1 on: February 25, 2018, 04:03:49 pm »
I have probably too many projects on the list at the moment, but...

I'm making a 3 stereo input audio mixer.  I have a hierarchical sheet containing 3 LineInputStage schematics.

I found I could get them all refer to the same underlying sheet and can still be annotated globally.  I haven't tried wiring them up yet though.

Anyway, my question.

Is there currently any sensible way to manage these groups in PCBNew?  When I import the netlist it correctly places all three sets of components on the board.  However it would be "nice" if I could create a layout for one of them, then duplicate it to complete the other two.

Googling reveals this was not available in past versions but it's harder to find if it exists in newer versions.

https://github.com/tlantela/KiCAD_layout_cloner/blob/master/layout_cloner.py
it takes a bit of manual text editing but it does work


 

Offline paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 4038
  • Country: gb
Re: Duplicate / Identical layout blocks?
« Reply #2 on: February 25, 2018, 06:31:07 pm »
Thanks.  A quick read of the code and I can see how it works.

The limiting factor is that it won't support updates.  Once generated via the script any update would need done to each manually, or... delete and reduplicate.

But it is a working solution, thanks.
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline MitjaN

  • Contributor
  • Posts: 34
  • Country: si
Re: Duplicate / Identical layout blocks?
« Reply #3 on: February 26, 2018, 12:34:29 pm »
If you use nightlies you can try https://github.com/MitjaNemec/Kicad_action_plugins.

Either way, there is a list of third party solutions available at: https://github.com/xesscorp/kicad-3rd-party-tools

Also posting on https://forum.kicad.info/ might get you additional solutions, whch can be more to your liking.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf