MitjaNemec / Kicad_action_plugins

Kicad action plugins
413 stars 62 forks source link

Create a 'update mode' on `replicate_layout` #17

Closed hildogjr closed 5 years ago

hildogjr commented 5 years ago

replicate_layout already have the XY align and the circular align, so create a 'update mode' on replicate_layout to just update the already created replicated layouts. Use the selected component in the base layout as offset/origin in all the other ones; so the position of these components will not change in Pcbnew. This may be useful to update the various replicated layout after integrated in the big layout.

MitjaNemec commented 5 years ago

can you elaborate a bit on the issue, as I am not certain I understand it correctly. My understanding of your workflow would be:

  1. place and layout the pivot (master) sheet
  2. replicate layout
  3. change the pivot sheet layout and placing
  4. update replicated layout, where you keep the original X/Y (or radius/angle) offset and everything else is replicated. If this is the workflow that you are looking for, I could add a button with which the plugin could grab current offsets, thus keeping the rest of the plugin unchanged
hildogjr commented 5 years ago

Exactly. About the step 4. Because we usually select one component of the pivot (master) to use the plugin, it could be use this orientation (XY and angle) to others. This should be useful when the different replicated layouts are already placed on the PDB and I just want to make same track/footprint update that will affect all them.

MitjaNemec commented 5 years ago

Partial fixed pushed right now, but I don't know if supporting circular layout is even possible without additional input from the user

hildogjr commented 5 years ago

Closing this as fixed by the function "Grab offset from layout".