It looks like you're new here. If you want to get involved, click one of these buttons!
Here is my code for flatten the "cell". (where "cell" is the cell I want to flatten)
my problem is:
1. why I can't flatten only 1 level with setting the "1" argument
2. I feel strange that the flatten function is not directly flatten the "cell", but I need to first search the parent cell, then use parent_cell.flatten(1) to flatten the "cell"
3. #1, #2 bring me to the other problem, if the parent cell is not only contain "cell", but also others, then the other cells also be flatten.
4. I would like to know that if "cell" call as an array, will cell.flatten also work?
So, how can I flatten the "cell" directly with affect the any other cells? Thanks.
seatch_for_cell = layout.cell(want_to_flatten) for p in seatch_for_cell.each_parent_cell(): c = layout.cell(p) c.flatten(1)