Hi, Cadence Family
I've created a cell named inva_lv, with dbMakeNet, dbCreateTerm, dbCreatePin for symbol view
; pcell: inva_lv
dbMakeNet(pcCV "VPP")
dbCreateTerm(dbFindNetByName(pcCV "VPP") dbFindNetByName(pcCV "VPP")->name "inputOutput")
dbCreatePin(dbFindNetByName(pcCV "VPP") dbCreateRect(pcCV '("pin" "drawing") list(1-hp:1-hp 1+hp:1+hp)))
Then I try to create inva_lv in another schematic pcCellView with dbOpenCellViewByType, dbCreateInst like below
; another pcell
masterIopinCv=dbOpenCellViewByType("basic" "iopin" "symbolr" nil "r")
dbCreateNet(pcCV "VPP")
dbCreateTerm(dbFindNetByName(pcCV "VPP") dbFindNetByName(pcCV "VPP")->name "inputOutput")
dbCreatePin(dbFindNetByName(pcCV "VPP") dbCreateInst(pcCV masterIopinCv "VPP" 1:1 "R0"))
masterCv=dbOpenCellViewByType("test" "inva_lv" "symbol" nil "r")
instId=dbCreateInst(pcCV masterCv "X0" 1:1 "R0" 1)
dbCreateInstTerm(dbFindNetByName(pcCV "VPP") instId dbFindTermByName(masterCv "VPP"))
CIW says "WARNING (DB-270000) :dbCreateInstTerm: Terminal not in instance's master"
Then the pin "VPP" in created inverter cannot be assign Net Name like below

So, I try to replace inva_lv by analogLib/pmos4
It's work like below

Am I missing something to build?
How can I fix it ?
Your help will be appreciated.
Virtuoso version IC6.1.7-64b.500.21