Mailing list archives : pcb-rnd

ID:5855
From:rn...@igor2.repo.hu
Date:Thu, 29 Sep 2022 13:26:48 +0200 (CEST)
Subject:[pcb-rnd] new: PadstackReplace with menus
Hi all,
 
sometimes we want to replace the padstack prototype of a lot of vias and 
terminals. As long as it's board vias, or terminals of a single subc, it's 
relatively simple because you can load the target padstack proto in the 
board's or subc's local prototype library. But when it's multiple 
subcircuits to deal with, each would require that manual step. 
 
The new feature helps automating this. It is implemented upon user feature 
request. It is accessible from pcb-rnd svn HEAD.
 
1. Action
 
The new action is called PadstackReplace. Documentation:
 
http://www.repo.hu/projects/pcb-rnd/user/09_appendix/action_details.html#padstackreplace
 
2. Menu on selected
 
In the select menu there's a "change selected objects" submenu that has a 
new "replace selected padstacks" submenu. 
 
You can manually select the affected padstacks or use query() or the 
advanced search to select them. It doesn't matter if you also have 
non-padstacks selected. Works accross subc-boundaries.
 
3. Popup menu on object
 
The right click context popup menu over vias and subcircuit padstacks 
offer a single-object variant
 
4. Other considerations
 
All of these are fully undoable. They are also "undo-batched", which means 
one operation is one undo serial number, so adding the prototype and 
making the change in the padstack ref is a single {u u} or when you run it 
on selection the whole thing, replacing all selected padstacks will be a 
single {u u}.
 
A common use case is when you have a bunch of subcircuits and you figure 
you want to have their padstacks differently. Plan A should be fixing your 
subc in your library and then re-importing them (can be automated). Plan B 
is to replace padstacks: first load or construct the new padstack, then 
copy it into the buffer, then select all the padstacks in all subcircuits 
affected and "replace selected", "from buffer".
 
 
Best regards,
 
Igor2
 
 

Reply subtree:
5855 [pcb-rnd] new: PadstackReplace with menus from rn...@igor2.repo.hu