Product Documentation
Virtuoso Layout Suite SKILL Reference
Product Version IC23.1, November 2023

drdGetAllowedWidth

drdGetAllowedWidth(
d_objID
t_layerName
[ ?constraintGroup t_constrGroupName ]
[ ?direction { any | horizontal | vertical } ]
[ ?upperLimit f_maxValue ]
)
=> l_integers / nil

Description

Returns a list of allowed widths for the specified layer.

Arguments

d_objID

Database ID of the selected object.

t_layerName

The layer name.

?constraintGroup t_constrGroupName

  

The constraint group in which drdGetAllowedWidth is defined. This is a user-defined setup constraint group. The default value is foundry.

?direction { any | horizontal | vertical }

  

The direction in which width is measured.
Valid values: horizontal, vertical, any (default)

?upperLimit f_maxValue

  

Specifies the upper bound up to which width values are to be retrieved.

Value Returned

l_integers

A list of legal width values (integers) less than or equal to the value specified using ?upperLimit.

nil

The width is not defined for the specified layer.

Examples

objID = css()
drdGetAllowedWidth(objID "M2" ?constraintGroup "foundry" ?upperLimit 0.05 )
=> (32 37 42 47)

Returns width values less than 0.05 for layer M2.

drdGetAllowedWidth(objID "M2" ?constraintGroup "foundry" ?direction "vertical" ?upperLimit 0.1 )
=> ( 32 37 42 47 52
57 62 67 72 77
82 87 92 97
)

Returns width values less than 0.1 for layer M2 when the direction is specified as vertical.


Return to top
 ⠀
X