Hi,
I've a script here to open the corresponding other design window in XL mode. For example, if the schematic design is opened, just calling this function would open the corresponding layout design window in XL mode and the other way as well. But somehow it doesn't have the connectivity reference (layout nets/instances/pins won't be selected if any of them are selected in the schematic and the other way around as well) until i click on any of the XL functions in the window. Can't figure out why... any help much appreciated. Following is the code:
+++++++++++++++++++++++++++++
procedure(srOpenLaySch(@optional (viewName nil) (cv geGetEditCellView()))
let((cellWin otherCv msg dbox viewType laywid)
unless(stringp(viewName)
if(cv~>viewName=="schematic" then
viewName="layout"
viewType="maskLayout"
else
viewName="schematic"
viewType="schematic"
)
)
otherCv = dbOpenCellViewByType(cv~>libName cv~>cellName viewName)
if(otherCv then
unless(geGetCellViewWindow(otherCv)
deOpenCellView(otherCv~>libName otherCv~>cellName otherCv~>viewName viewType nil "r")
) ;unless
cellWin=geGetCellViewWindow(otherCv)
if( cellWin~>cellView~>cellViewType != "maskLayout" then
laywid = geGetCellViewWindow(cv)
deInstallApp( laywid "Virtuoso XL")
else
deInstallApp( cellWin "Virtuoso XL")
)
;;
hiDeiconifyWindow(cellWin)
hiSetCurrentWindow(cellWin)
hiRaiseWindow(cellWin)
else
hiGetAttention()
sprintf(msg "**WARNING: Could not open %s %s %L\n" cv~>libName cv~>cellName viewName)
sprintf(msg "%s Would you like to create this view?\n" msg)
dbox=hiDisplayAppDBox(?name 'dBox ?buttonLayout 'YesNo ?dboxText msg ?dboxBanner "Create this view?")
if(dbox then
printf("Creating: %s %s %L\n" cv~>libName cv~>cellName viewName)
if(otherCv = dbOpenCellViewByType(cv~>libName cv~>cellName viewName viewType "a") then
deOpenCellView(otherCv~>libName otherCv~>cellName otherCv~>viewName viewType nil "a")
else
hiGetAttention()
printf("**ERROR: Could not create %s %s %L\n" cv~>libName cv~>cellName viewName)
)
else
printf("Cell view %s %s %L does not exist and was not created\n" cv~>libName cv~>cellName viewName)
)
)
otherCv
) ;let
) ;proc
hiSetBindKey("Layout" "CtrlSuper<key>`" "srOpenLaySch()")
hiSetBindKey("Schematics" "CtrlSuper<key>`" "srOpenLaySch()")
+++++++++++++++++++++++++++++
Thanks
Ram