1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
;-----------------------------------------------------------------------
;     Copyright (c) 2020-2024 by Altair Engineering, Inc.
;     Author: Heinz Bruederlin
;
; Schematic skill helper procedures
;
; load script into cadence CIW with
; > load("<path/to/script>/schematicProcedures.il")
;

putd('CeSchematicZoomToObj nil)
procedure(CeSchematicZoomToObj(libName cellName instName)
  prog( (windowId cvId instId bbox)
    windowId = deOpenCellView(libName cellName "schematic" "schematic" nil "r")
    cvId = geGetWindowCellView(windowId)

    schZoomFit(1 1)

    instId = dbFindAnyInstByName(cvId instName)
    bbox = instId~>bBox
    hiZoomIn(windowId bbox)

    ;geDeselectAll()
    geSelectFig(instId)
  )
)