Stefan Schippers
03/22/2021, 9:29 PM# select all components with symbol name matching 'pfet'
# subcmd regex|exact 1:select, -1:unselect attribute value
xschem search regex 1 cell::name pfet
1
xschem selected_set
{M8} {M9} {M10} {M11} {M12} {M13} {M24} {M25} {M26} {M27} {M28} {M29}
foreach i [xschem selected_set] {
# do something
}
xschem unselect_all
for attributes everything that refers to a symbol (for example the type attribute, the format attributem, name etc) must be prefixed with cell::.
Any attribute not prefixed with cell:: refers directly to instance attributes.
for example if you do :
xschem search regex 1 name M
you are selecting all mos instances (M1, M2, M3...)
Another useful command is the getprop
command:
xschem getprop instance M8 L
0.15