I'm trying to get the ConstraintID of a particular constraint in the tech file foundry CG:
orderedSpacings(
( minOppExtension "METAL5" "VIA45" (0.020 0.11) 'ref "Mn.EN.1 Mn.EN.2" )
)
my skill code:
techdb = techGetTechFile( ddGetObj("tsmc13rf"))
FoundryID = cstFindConstraintGroupIn(techdb "foundry")
ConstID = cstFindFirstConstraint(FoundryID "minOppExtension" list("METAL5") list(0.02 0.11)
println(ConstID)
Running this code in the CIW gives:
*WARNING* (CST-300016): Constraint def 'minOppExtension' is not a layer constraint registry.
nil
t
The cstFindFirstConstraint is failing with ConstID having a nil value.
Why is this warning happening? Please help me understand how to properly format the t_constraintDefName in the cstFindFirstConstraint.