I've managed to program a new pcell with SKILL script.
New pcell is uploaded to icfb environment by ddGetObj,
and then I used separate script to generate pcell instance using dbCreateParamInst.
However, when I try to run DRC, I would get
"ERROR: Failure to read input file xxxx at record offset 0." (where "xxxx" is the name of some calibre.db file.
If I flatten everything however, DRC tool will not give me this error.
Is anyone familiar with this type of error? I've seen other threads discussing about similar problem with schematic editor, but not layout editor along with DRC tool.