Hi, does anyone know how to move subcells in magic...
# magic
s
Hi, does anyone know how to move subcells in magic together ? For eg. I selected these three resistor sub cells together and want to move them but unable to do so at the top level using 'm' or 'move'. m works fine for one sub cell at a time but not when multiple sub cells are selected together. For eg with the selection if I did 'm' the box just moves to the cursor position but the cells are not moved.
t
I expect that you used an "area selection" for the multiple cells, so magic selected the drawn layers, not the subcells, and then refused to move the layers because they're not in the top level (edit) cell. Instead, use
i
to select a subcell and
I
(shift-
i
) to select additional cells. The command
select area subcell
will also work to select all subcells (not the layers inside) at once.
s
Thanks @Tim Edwards. Using
i
for selecting subcell and
I
worked. I need to select each additional subcell by moving the mouse pointer and
Shift+i
. However I'm not quite sure how to use the
select area subcell
. I used the box tool and then selected a box area that had multiple subcells. Then I used the command
select area subcell
but it didn't select all subcells within the box or in the area and therefore subsequent command to move has no impact. Could you kindly elaborate on to use this command if possible ?
t
My suspicion is that this command option might have become broken after a recent change to the
select
command code. I'll need to investigate. Thanks for bringing it to my attention.
FYI, the
select area subcell
only works if subcells are unexpanded, so first you need to do "`unexpand`" followed by
select area subcell
. This is an unnecessary restriction, so I have now corrected it in the source code, making it operate as the documentation implies (no longer requires hiding cell contents before selecting a subcell). This change has some impact on command usage, such as doing something like
select area m1,subcell
followed by
copy
, which would then copy both the instance and some of its contents. Since previously that would not have worked as expected without unexpanding the subcells first, then the change should not impact existing scripts.