SKILL : How to delete objects created by a loop ?

P

Pedro

Guest
This is a part of my SKILL program (very easy to understand !);

for(i 0 N
p = dbCreateRect(myCellView... .... ... ...)

........... ; layer generation step

dbDeleteObject(p) ;
)


In this loop there is a layer generation step, which uses the objects
created by the loop.
Then I would like to delete those objects, but il dosen't work when
giving them a label and using dbDeleteObject() in the loop.

Does anybody can tell me how to do ?

Thanks a lot.

Pierre
 
Then I would like to delete those objects, but il dosen't work when
giving them a label and using dbDeleteObject() in the loop.
Humm, it should work... shouldn't it?
What does it mean : "it doesn't work" ? What's the error?
What's the "label" you're talking about?

stéphane
 
On Wed, 25 May 2005 03:10:24 -0500, Pedro wrote:

This is a part of my SKILL program (very easy to understand !);

for(i 0 N
p = dbCreateRect(myCellView... .... ... ...)

........... ; layer generation step

dbDeleteObject(p) ;
)


In this loop there is a layer generation step, which uses the objects
created by the loop.
Then I would like to delete those objects, but il dosen't work when
giving them a label and using dbDeleteObject() in the loop.

Does anybody can tell me how to do ?

Thanks a lot.

Pierre

Are you modifying the rect 'p' in your layer generation step? For example,
if you create two overlapping rectangles and then use leMergeShapes on
them, this will produce a new polygon and the two initial rectangles will
no longer exist. What you might need to do is to keep track of some of the
temporary shapes produced in your layer generation step, and delete
those shapes at the end. I had this problem awhile back and it
took me awhile to figure out why deleting the initial shapes didn't work.

Frank
 

Welcome to EDABoard.com

Sponsor

Back
Top