This example is a good starting point if you want to traverse all occurances of each instance, important for exporting BOMs.
C:\Cadence\SPB_17.2\tools\capture\tclscripts\capCustomSamples
So, this example organizes parts by instances and occurrences having to do with CIS. But, can I see the page name from this?
I've changed the code to solve a problem (catching value property updates before Part Manager resets them to match CIS)
But, I need to export the Page Name that these parts are located on in the DSN project. Because finding this part on a huge project is painful when I have to do a lot of them.
Apparently, this is not similar to GetRefDes or GetPartValue (CISBase?)
# pPartID function parameter. Used to get lCISInstOcc
# pPartID is iterated outside this routine
set lUINTPartId [CISTclHelper_sGetUINTFromInt $pPartId]
set lCISInstOcc [$pCISDesign GetPartOccForID $lUINTPartId]
set lCISPartInst [$lCISInstOcc GetOwningCISPartInst]
set lCaptureObjIdUINT [CISTclHelper_sGetUINTFromInt [$lCISInstOcc GetCaptureObjectId]]
#$lCISPartInst GetOccStatus $lCaptureObjIdUINT $lPartStatus $lKey
set lRefDes [$lCISInstOcc GetPartRefDes]
set lRefDes [$lRefDes GetRefDes]
set lRefDes [DboTclHelper_sMakeCString $lRefDes]
set lRefDesStr [DboTclHelper_sGetConstCharPtr $lRefDes]
set lPartValueStr [DboTclHelper_sMakeCString]
set lPartValue [$lCISInstOcc GetPartValue]
set lPartValueStr [DboTclHelper_sGetConstCharPtr $lPartValue ]
This part definitely doesn't work.
ERROR : Invalid method.
set lPageIDStr [DboTclHelper_sMakeCString]
set lPageID [$lCISInstOcc GetOwningPageID]
set lPageIDStr [DboTclHelper_sGetConstCharPtr $lPageID ]
Anyone figure out if I can use GetOwningPageID from an instanceOccurance?