Thanks.
regards,
Suresh J
The label created is a textDisplay (I think for that command), and shows the
name of the terminal for the pin. If the terminal name changes, it automatically
will change what it displays. So all you'd have to do is change the terminal
associated with the pin object. Should be doable with db functions.
(sorry about the brief answer; I'm in a hotel (as usual...))
Andrew.
--
Andrew Beckett
Senior Technical Leader
Custom IC Solutions
Cadence Design Systems Ltd
In case you do not want to have run "Check and Save", and you want your
code to do it for you, try this:
dbMergeNet(dbCreateNet(term~>cellView new_name) term~>net)
term~>name = new_name
Currently, you cannot rename a net directly, as you can for a terminal,
(I think this should be possible, personally) so you have to create a
new net with the new name and merge the old net into the new net.
OkGuy
I assume you're talking about the labels attached to wires attached to the pin
you just renamed (by changing the terminal name)? If so, these will not change
automatically at check-and-save time as was suggested.
Say you have three variables already set:
cv - database object of cellView
oldName - old terminal name
newName - new terminal name
then:
term=dbFindTermByName(cv oldName)
term~>name=newName
foreach(fig term~>net~>figs
foreach(child fig~>children
when(child~>objType=="label" && child~>theLabel==oldName
child~>theLabel=newName
) ; when
) ; foreach
) ; foreach
will do it. This looks at all the figures associated with the net (e.g the
wires), and then looks for children of these wires (the attached labels) and
changes them.
Regards,
Andrew.