Im looking to write code to open a corresponding schematic view from a
layout window. I have the command below, (which uses predefined
variables BSlibname1, BSblockname1 and BSviewname1 to call the cell
info) but I'm hoping to extract this info from the open layout window.
Would anyone know how to go about this?
hiSetBindKey("Layout" "Ctrl Alt Shift<key>1"
"win1=hiCreateWindow('((0 248) (1410 1175)) \"graphics\"
\"schematic_win\" \"\" t) geOpen(?window win1 ?lib BSlibname1 ?cell
BSblockname1 ?view BSviewname1 ?mode \"r\") hiResizeWindow(win1
geOpen will open a new window if you don't pass ?window - and returns the window id (there appears to be an error in the documentation, but it's always done this).
So using the hiCreateWindow is a bit unnecessary - and I think that's why it's failing because the hiGetCurrentWindow() will be returning the new window, not the source window.