Does anyone know how to flatten a placed instance ...
# magic
m
Does anyone know how to flatten a placed instance in magic?
t
It was supposed to be
select pick ; select flat ; select keep
, but I just tried that and the flattened selection vanishes on the last command, so I need to go figure out what's up with that. Seems to be an error with the
select flat
command.
This method works, but is kind of awkward:
tech unlock * ; select cell ; select area ; copy n 0 ; select cell ; delete
. The
select area
may pick up material outside of the cell being flattened this way.
m
Thanks. This is what I recommended, but may not select the get the locked layers. https://skywater-pdk.slack.com/archives/C016UL7AQ73/p1645002619643109?thread_ts=1644990516.122249&cid=C016UL7AQ73
t
Interestingly, the following hack works:
tech unlock * ; select cell ; select pick ; select flat ; move e 0 ; undo ; select keep
. In other words,
select flat
puts it into some weird state, but then running a command and undoing it gets it out of that state. That should be enough information for me to debug from.
@User: Found and fixed. The
select flat
command did not recompute the selection bounding box, which meant that the only thing that was seen in the selection during a search was whatever was in the unit area (0, 0) to (1, 1). After the fix, the following sequence of commands will do a "flatten in place":
tech unlock * ; select cell ; select pick ; select flat ; select keep
.
m
Thanks for the quick response. Sounds like a good candidate for a macro. In program help says that
select pick
deletes the selection from the layout. Is this like ctrl-X in windows, i.e. delete and save to something like a clipboard?