Home › Forums › Nazca › Connecting two cells within a cell › Reply To: Connecting two cells within a cell
15 December 2020 at 15:26 #6301
You need to connect the cell instance, not the cell itself, since that has no location:
import nazca as nd import nazca.demofab as demofab with nd.Cell(name="cell1") as cell1: demofab.deep.strt(length=100).put() with nd.Cell(name="cell2") as cell2: demofab.deep.strt(length=200).put() wg1 = demofab.deep.bend(radius=100, angle=-180).put() demofab.deep.cobra_p2p(pin1=wg1.pin['b0'], pin2=(100, 100, 0)).put() with nd.Cell("Final") as final: cl1=cell1.put(200, 300, 0) cl2=cell2.put(500, 500, 0) demofab.deep.cobra_p2p(pin1=cl1.pin['b0'], pin2=cl2.pin['a0']).put() final.put() nd.export_gds(filename="test")
Not sure if what you get now is what you want, but it should get you going.