The stream-out options have flattening of pcell but it applies to all pcell.
Anyway I can set a certain list of pcell to flatten?
Thanks berndfi. I got your idea, but I forgot to add that I want to flatten a sub-pcell of a pcell.
I can't traverse to the hierarchy of a pcell to do the foreach loop in every instances.