Home › Forums › Nazca › Questions and Answers › Pin attributes › Reply To: Pin attributes
10 July 2018 at 16:56
#4578
alvin
Member
Assuming I have defined cellA and it has the pin ‘lb’ which is set to be at the bottom left corner of the cell. I want to put a space in y-direction of 50 um between cellA and the sequent cell (cellB) automatically without knowing the actual size of cellA.
I found if I do this:
nd.cp.goto_pin(cellA.pin['lb']) nd.cp.move(0,-50,0) cellB.put()
It returns an error:
Exception: Not allowed to create a node outside the scope of max one level deep.
associated with the use of
nd.cp.move(0,-50,0)
after using
nd.cp.goto_pin
However, there is no error if I do this:
nd.cp.goto_pin(cellA.pin['lb']) xya = nd.cp.here() nd.cp.goto(xya.x,xya.y) nd.cp.move(0,-50,0) cellB.put()
It is a little bit troublesome!! Is there any way I can use
nd.cp.move(0,-50,0)
right away?