Hi,
I am new to skill,
I am checking if any of the windows are opened, if windows are available, then check if particular (lib,cell,view) are opened,
if the layout is not already opened then print the statement. (i will substitute print statement to deopencellview later).
I am unable to find the problem with the below code. As it is not working properly, when i open cell view, it prints absent statement.
procedure( lpFgOpenDB()
let( (openWin svw)
openWin=cdr(hiGetWindowList())
foreach(svw (openWin~>cellView)
if( !(((svw~>libName) == "lp_amr") && ((svw~>cellName) == "apple") && ((svw~>viewName) == "layout"))
then
printf( "apple is absent\n" )
else if( !(((svw~>libName) == "lp_amr") && ((svw~>cellName) == "orange") && ((svw~>viewName) == "layout"))
then
printf( "orange is absent\n" )
);else if
);if
);foreach
);lef
);proc
An alternative to the above code is also helpful
Thanks & Regards,
Lakshmiprashanth
((svw~>libName) == "lp_amr" && (svw~>cellName) == "fromlayout" && (svw~>viewName) == "layout")