Here is two small routines to assign net to dummy shapes.
aas is to assign Static shapes
aad is to assign Dynamic shapes
It works, but I want both "stoppable" with a popup menu.
aas : stop works after two popup Stop calls.
aad : stop does not make what I want. it stops the active shape and goes to next one.
I have to stop as many time as shapes in the SelSet.
How to write this to completely exit the routine?
Thanks in advance for any help.
Here is some alternative code.
Note the use of the event mask.
The only way to get out of a foreach loop is to use return() - this necessitates use of a prog andwill stop the loop through your shapes after you have used "stop".
After you have changed the net on each shape its dbid will change. This makes de-highlighting difficult (but not impossible).