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

drdAddTarget

drdAddTarget( 
w_winID
l_point
) 
=> t / nil

Description

Sets the shape located at the specified point in the specified window as a DRD target. The function does not remove from the selection the shapes already set as DRD targets. If two or more shapes overlap at the specified point, the shape on the active layer is set as a DRD target.

For example, if a shape on Poly layer and a shape on Metal1 layer overlap at the specified point and you want to set the shape on Poly layer as a DRD target, set Poly as the active layer in the Palette.

You can bind a key to this function and use the bindkey during interactive editing to set objects as DRD targets. For more information, see Setting DRD Targets Using the Bindkey and Bindkey Reassignment in Virtuoso Design Rule Driven Editing User Guide.

Arguments

w_winID

ID of the layout window in which you want to set DRD targets.

l_point

Coordinates of the location in the layout window where the target is to be set. The coordinates must be specified in database units (dbu).

Value Returned

t

A shape at the specified point was set as a DRD target.

nil

No shape was set as a DRD target.

Examples

drdAddTarget(hiGetCurrentWindow() 2000:1000)
drdAddTarget(window(2) 10000:10000)
drdAddTarget(window(3) list(12000 1000))

Return to top
 ⠀
X