<@U02NNT94BK8> easy to add by yourself and adapt a...
# magic
h
@User easy to add by yourself and adapt as you wish, here are the ones I use (using Shift-Number as 1,2,3,… is already taken)
Copy code
macro 0 "see no * ; see locali ; see mcon"
macro ! "see no * ; see mcon   ; see metal1 ; see via1"
macro @ "see no * ; see via1   ; see metal2 ; see via2"
macro # "see no * ; see via2   ; see metal3 ; see via3"
macro $ "see no * ; see via3   ; see metal4 ; see via4"
macro % "see no * ; see via4   ; see metal5"
macro 9 "see *"
r
Thanks. Perfect. I will keep this note
t
Depending on whether your intent is to make the layers invisible on the layout (which is what
see
and
see no
commands do, in Harald's post above) or removed from the toolbar, the latter can be done with a somewhat complicated script. You would first need to get a list of all layers with
tech layer "*"
. Then you'd need to select everything in the window and use
what -list
, take the first component of the returned list, then remove those entries from the list of all types. Then apply
tech lock
to the list of layers, as locking a layer makes it disappear from the toolbar. What I need is to have a list of visible items on the toolbar that is independent of the locked layers, since if you lock a layer, you can no longer draw it, and need to run
tech unlock
to get it back.
r
any command to get the layers used in the layout?