How can I raise the schematic window if it is iconified or if
the schematic window is placed behind other windows, by using SKILL?
Because, during layout designing, it is difficult to find the schematic window,
if many windows exist. I'm using icfb version 188.8.131.520.5.109 .
Any help are appreciated.
Try reading the Cadence User Interface SKILL Functions Reference manual, in <ICinstDir>/doc/skuiref/skuiref.pdf (or via cdsdoc). Or search in cdsFinder for likely functions.
You need to use hiRaiseWindow() or hiDeiconifyWindow() . You may also want to use hiGetWindowIconifyState() to find out whether it is "iconized" (minimized) or not.
In addition to Andrew's post, you can use something like the following code to help you to find and then iterate over the schematic windows:
=> returns a list of window id's where the window is a schematic application
You can then iterate over this list (e.g. with foreach) and decide whether to
raise or de-iconify the window.
Hopefully this additional information is helpful.
In reply to skillUser:
Thank you all for replying, I think I solved my problem by following your
advice. My solution is as follows :
hiSetBindkey("Command Interpreter" "Ctrl<Key>s" "deIconify_schematic() ")
It is working, I will try tomorrow about Lawrence suggestion.
Thank you very much,
In reply to marbs:
No point in using geGetEditCellView() and then using geGetCellViewWindow() to get the window id. Simpler to just directly use hiGetCurrentWindow() - e.g. hiRaiseWindow(hiGetCurrentWindow())
I think that this solution will only work if the schematic cellview happened to be the current cellview window. Since there can be only one current cellview window, I would expect it to be another window, other than the hidden or iconified schematic that you are trying to pop up. In other words, if the schematic window is "buried" or iconified and you are working with layout or other graphical windows, one of these will likely be current which would render the above code functionally incorrect (it won't specifically raise the schematic, just whichever window is current).
Good luck looking at my suggestion, I think it will better solve the problem.