I wrote the following code to open the selected instances in layout/schematic in a new tab. But somehow this doesn't workout well since the create->probe doesn't work well in schematic across the tabs, also it gives the following ERROR. Could someone help me here to fix this? *Error* _schIsUserEditable: argument #1 should be a string (type template = "t") - nil ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ procedure(srOpenLayoutInTab() techLibName = techGetTechFile(geGetEditCellView())~>libName myCells = geGetSelSet() if( myCells then foreach( cells myCells cellViewType = cells~>master~>cellViewType when( cellViewType == "maskLayout" if( cells~>isAnyInst then myLibName = cells~>libName myCellName = cells~>cellName myViewName = cells~>viewName printf("\nOpening the design %A from lib %A in a new tab\n\n" myCellName myLibName) window = hiOpenWindow(?session hiGetSessionWindow(hiGetCurrentWindow()) ?type "graphics" ?appType hiGetAppType(hiGetCurrentWindow())) window->sessionWindow=hiGetSessionWindow(hiGetCurrentWindow()) geOpen( ?window window ?lib myLibName ?cell myCellName ?view myViewName ?viewType cellViewType ?mode "r" ) );if );when );foreach foreach( cells myCells cellViewType = cells~>cellView~>cellViewType when( cellViewType == "schematic" if( cells~>isAnyInst then myLibName = cells~>libName myCellName = cells~>cellName ;myViewName = cells~>viewName printf("\nOpening the design %A from lib %A in a new tab\n\n" myCellName myLibName) window = hiOpenWindow(?session hiGetSessionWindow(hiGetCurrentWindow()) ?type "graphics" ?appType hiGetAppType(hiGetCurrentWindow())) window->sessionWindow=hiGetSessionWindow(hiGetCurrentWindow()) geOpen( ?window window ?lib myLibName ?cell myCellName ?view "schematic" ?viewType cellViewType ?mode "r" ) );if );when );foreach else printf("\nNo instances are selected to open \n\n") );if );procedure ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Thanks SSR
↧