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

leMicroEdit

leMicroEdit( 
t_direction 
[ w_windowId ]
) 
=> t / nil

Description

Allows using bindkeys instead of the mouse to move, copy, or stretch any shape. When no command is active, the selected shape is either moved or stretched, depending on whether the shape is fully or partially selected, respectively. When the copy, move, or stretch command is active, the selected shape is copied, moved, or stretched, respectively.

By default the length of mouse movement for each keystroke is 0.5 user units. You can change the length by setting the legRpDelta variable in CIW, such as legRpDelta = 1 or legRpDelta = 2.

Arguments

t_direction

The direction of the command. The choices are up, upperRight, left, lowerLeft, down, lowerRight, right, or upperLeft.

w_windowId

Database ID of the window.

Value Returned

t

The function is successful.

nil

The function is not successful.

Example

In the following example, the numerical pad bindkeys have been set for each direction of the command.

hiSetBindKey( "Layout" "<Key>KP_7" "leMicroEdit('upperLeft)")
hiSetBindKey( "Layout" "<Key>KP_4" "leMicroEdit('left)")
hiSetBindKey( "Layout" "<Key>KP_1" "leMicroEdit('lowerLeft)")
hiSetBindKey( "Layout" "<Key>KP_2" "leMicroEdit('down)")
hiSetBindKey( "Layout" "<Key>KP_3" "leMicroEdit('lowerRight)")
hiSetBindKey( "Layout" "<Key>KP_6" "leMicroEdit('right)")
hiSetBindKey( "Layout" "<Key>KP_9" "leMicroEdit('upperRight)")
hiSetBindKey( "Layout" "<Key>KP_8" "leMicroEdit('up)")

Return to top
 ⠀
X