When opening a pcell with dbOpenCellViewByType(), the pcell's parameters are set to the default values.
If the pcell is instanced in another cell, you can open that pcell with cell~>instances~>master and the pcell's shapes will reflect any changes that were made on the pcell's parameter values. However, the pcell will be opened for read-only.
How do I open the pcell for write and also keep the pcell's parameters that could have been changed in the instancing cell?
Is there an equivalent function to dbCreateParamInst() which would open the cell, such as dbOpenParamCellViewByType()?
In reply to Andrew Beckett:
Thanks Andrew. I wanted to use dbFlattenInst() but I see that I should first check if the master is a pcell and handle it differently.
In reply to ahamlett:
You don't need to check whether a master is a pcell before you call dbFlattenInst. There's an argument to dbFlattenInst to control whether it will flatten pcells or leave them as pcells - but if you specify t, it will flatten it regardless of whether it is a pcell or not.