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

drdConstraintItemClicked

drdConstraintItemClicked(
t_constraintName
x_columnIndex
x_stateValue
w_windowId
) 
=> t / nil

Description

Toggles the state of a constraint for different checking modes, that is, Enforce, Notify, Post-Edit, and Batch, on the Filters tab of the DRD Options form.

Arguments

t_constraintName

Name of the constraint.

x_columnIndex

Column index; 0 indicates the Constraint column, 1 indicates the Enforce (E) column, 2 indicates the Notify (N) column, 3 indicates the Post-Edit (PE) column, and 4 indicates the Batch (B) column.

x_stateValue

Value indicating the selection states of a constraint; 0 for deselection, 1 for partial selection, and 2 for complete selection.

w_windowId

The current window ID.

Value Returned

t

The state of the category was changed.

nil

The state of the category could not be changed.

Examples

drdConstraintItemClicked("maxNumCorners" 2 2 window(2))

It enables the Notify checking mode for the maxNumCorners constraint.

drdConstraintItemClicked("maxNumCorners" 2 0 window(2))

It disables the Notify checking mode for the maxNumCorners constraint.

drdConstraintItemClicked("maxNumCorners" 3 0 window(2))

It disables the Post-Edit checking mode for the maxNumCorners constraint.

drdConstraintItemClicked("maxNumCorners" 4 2 window(2))

It enables the Batch checking mode for the maxNumCorners constraint.


Return to top
 ⠀
X