Question on highlighting nets

S

SS

Guest
I have a procedure to highlight a particular net each time I call it.
Everytime I call the procedure I just want all the shapes in that
particular net to be highlighted.

All other previously highlighted nets should be unhighlighted. However
this does'nt happen.

All previously highlighted nets are not unhighlighted ? Why is this ?

Thanks,
SS



procedure(highLiteNet(cv netname lpp)
let((net hlSetId)
hlSetId=geCreateHilightSet(cv lpp)
hlSetId->enable = nil
net = dbFindNetByName(cv netname)
foreach(fig net~>figs geAddHilightFig(hlSetId fig))
hlSetId->enable = nil
);let
);proc
 
On Nov 15, 11:11 am, SS <ssrirami...@gmail.com> wrote:
I have a procedure to highlight a particular net each time I call it.
Everytime I call the procedure I just want all the shapes in that
particular net to be highlighted.

All other previously highlighted nets should be unhighlighted. However
this does'nt happen.

All previously highlighted nets are not unhighlighted ? Why is this ?

Thanks,
SS

procedure(highLiteNet(cv netname lpp)
let((net hlSetId)
hlSetId=geCreateHilightSet(cv lpp)
hlSetId->enable = nil
net = dbFindNetByName(cv netname)
foreach(fig net~>figs geAddHilightFig(hlSetId fig))
hlSetId->enable = nil
);let
);proc

You have to remove the old highlights. For example, add the following
to the beginning of your procedure to clear any existing highlight
sets before creating a new one.

geDeleteAllHilightSet(cv)
 

Welcome to EDABoard.com

Sponsor

Back
Top