SKILL: How to determine if a leyer purpose pair is empty?

A

Andrew Wilford

Guest
Hi,

Does anyone know how to check, using SKILL, if a layer purpose pair is in
use. ie. whether it contains any database objects or not?

Thanks!
Andrew Wilford
 
I wrote a SKILL procedure that works on some examples that I tried it on. I
think that if a LPP is in use in a database object then it should be in the
cellview's lpps list, and if unused it should not appear there. Here it is:

procedure(FGIsLPPUsed(lpp)
prog(list(cv)

cv=geGetWindowCellView()

foreach(cvlpp cv~>lpps
if((cvlpp~>layerName == car(lpp) && cvlpp~>purpose == cadr(lpp)) then
return(t))
)
return(nil)
)
)

I hope this works for you.

Frank

"Andrew Wilford" <awilford@adelphia.net> wrote in message
news:UgXKb.84$QI3.156165@news2.news.adelphia.net...
Hi,

Does anyone know how to check, using SKILL, if a layer purpose pair is in
use. ie. whether it contains any database objects or not?

Thanks!
Andrew Wilford
 

Welcome to EDABoard.com

Sponsor

Back
Top