<@U016EM8L91B> Is there a way to array a cell inst...
# magic
t
@Tim Edwards Is there a way to array a cell instance but have the individual instances after the array method individually selectible/deletable?
t
It could be done with a double-loop in Tcl. But it does seem like there should be an option to
array
that treats instances like it treats paint, just copying in X and Y rather than making an actual instance array.
t
well i want to put down a ton of via instances but remove only a select few where there are routing contrraints
t
Something like this:
Copy code
box position 0 0
for {set i 0; $i < 100; incr i} {
    for {set j 0; $j < 100; incr j} {
        getcell my_via_inst
        box move e 2.5um
    }
    box move n 2.5um
    box move w 250.0um
}
which will place a 100 x 100 array of vias separated by 2.5um in X and Y.
Test it out with a small array first because it's not monolithic and if it's wrong you're going to have to do "undo" a lot of times. . .
t
noted
ok thanks, ill give that a go
do i just put that script in the current folder and type the file name in the console?