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

0 Members and 1 Guest are viewing this topic.

Offline paulca

  • Super Contributor
  • ***
  • Posts: 1760
  • Country: gb
Duplicate / Identical layout blocks?
« on: February 26, 2018, 01:52:07 am »
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:  3 Channel Audio mixer with DAC, BT, pre-amps and h/phone amp, WS281x LED controller Version 2 5V/5A w/Atmega328, FY6600 Power supply, 5A DC Load (Still!)
 

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 1152
  • Country: dk
Re: Duplicate / Identical layout blocks?
« Reply #1 on: February 26, 2018, 03:03:49 am »
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 paulca

  • Super Contributor
  • ***
  • Posts: 1760
  • Country: gb
Re: Duplicate / Identical layout blocks?
« Reply #2 on: February 26, 2018, 05:31:07 am »
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:  3 Channel Audio mixer with DAC, BT, pre-amps and h/phone amp, WS281x LED controller Version 2 5V/5A w/Atmega328, FY6600 Power supply, 5A DC Load (Still!)
 

Online MitjaN

  • Contributor
  • Posts: 5
  • Country: si
Re: Duplicate / Identical layout blocks?
« Reply #3 on: February 26, 2018, 11: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