hierarchical instance name still valid?

E

Erik Wanta

Guest
I save a list of hierarchical instance names. Later on the schematic
may have changed and I need to determine if the instances names that I
saved are still valid. That is, I save I0/R0. I need to determine if
I0/R0 still exists in the current schematic hierarchy. Any ideas on
how to determine if a hierarchical instance name is still valid?
---
Erik
 
I am checking to see if hierarchical instance names are still valid by
doing a geAddInstProbe on the hierarchical instance names. This
works, but I would think there would be a less kludgy approach. Any
ideas?

when(fileLength(strcat(ddGetObjReadPath(viewId) "/state"))>1

;load mismatch params to form
nameList=nil
probeId=nil

while(gets(line inPort)
when(line!="\n"

if(rexMatchp("/" car(parseString(line))) then
;add / if hierarchical inst name
hierInstName=strcat("/" car(parseString(line)))
else
hierInstName=car(parseString(line))
) ; if

probeId=geAddInstProbe(windowId nil hierInstName)

;handle iterated instances
when(length(parseString(hierInstName "_"))>1

first=remove(car(last(parseString(hierInstName "_")))
parseString(hierInstName "_"))
last=car(last(parseString(hierInstName "_")))

hierInstName=strcat(buildString(first "_") "<" last ">")
probeId=geAddInstProbe(windowId nil hierInstName)

) ; when

when(probeId

nameList=append1(nameList car(parseString(line)))

) ; when
) ; when
) ; while

;delete all probes
geDeleteAllProbe(windowId)

) ; when

close(inPort)

---
Erik

erikwanta@starband.net (Erik Wanta) wrote in message news:<84018314.0309021614.34318981@posting.google.com>...
I save a list of hierarchical instance names. Later on the schematic
may have changed and I need to determine if the instances names that I
saved are still valid. That is, I save I0/R0. I need to determine if
I0/R0 still exists in the current schematic hierarchy. Any ideas on
how to determine if a hierarchical instance name is still valid?
---
Erik
 

Welcome to EDABoard.com

Sponsor

Back
Top