Cell hierarchy problem

I am trying to use GDS2Writer functions in C++ to write GDS files. Like TEST(2) in "dbGDS2Writer.cc", if the cells have no hierarchy, there is no problem. When I try to write the cells with a hierarchy like below,

I use "add_cell()" function twice. Then, my structure looks like flat, which means it does not have a hierarchy.

How can I get the output with the same hierarchy of original GDS?
Thank you in advance!


Sign In or Register to comment.