Product Documentation
Virtuoso Schematic Editor SKILL Functions Reference
Product Version IC23.1, November 2023

schZoomFit

schZoomFit( 
f_scale1 
f_scale2 
[ w_windowId ]
)
=> t

Description

Performs a zoom-to-fit with the given zoom scale values. If the schematic cellview contains a sheet border, the first zoom scale value is used. The second zoom scale value is used when there is no sheet border.

Arguments

f_scale1

The zoom scale if the schematic cellview contains a sheet border.

f_scale2

The zoom scale if the schematic cellview does not contain a sheet border.

w_windowId

Window where the function runs. If not specified, the current window is used.

Value Returned

Always returns t.

Examples

If the schematic cellview contains a sheet border, it is scaled to 1.0, which represents fitting the cellview bounding box to the size of the current graphic window. If the schematic cellview contains no sheet border, it is scaled 0.9, which represents fitting the cellview bounding box to 90% of the current graphic window.

schZoomFit( 1.0 0.9 ) 

Return to top
 ⠀
X