How to remove a mosaic instance in a layout?

Status
Not open for further replies.

tea_xiao

Newbie level 5
Joined
Dec 29, 2005
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,346
gegeteditcellview()

When I use the function "dbDeleteObject(inst)" to remove a mosaic instance in a layout, there is a warning message in CIW.
*WARNING* You can't delete the mosaicInst in the simple mosaic.

How to fix it?

Thanks a lot.
 

dbdeleteobject

I created a mosaic and selected it. Then,
inst=car(geGetSelSet())
dbDeleteObject(inst)
The mosaic was deleted.

So I don't know what's your problem.
 

(mosaicinst)

I do these steps:
1. cv = geGetEditCellView()
2. foreach( inst cv~>instances
dbDeleteObject(inst)
)

The error message appears in the CIW.
 

mosaicinst

Code:
foreach(inst cv~>instances
    if(inst~>objType=="mosaicInst" then
        dbDeleteObject(inst~>mosaic)
    else
        dbDeleteObject(inst)
    )
)
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…