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

leRegisterUseGravity

leRegisterUseGravity( 
t_cmdName
) 
=> t

Description

Enables a user-defined SKILL enter function to use the gravity feature. Gravity follows the options specified in the Layout Editor Options form.

Arguments

t_cmdName

The name of the command for which you want to use gravity when the user enters points.

Value Returned

t

Gravity is used as per the options specified in the Layout Editor Options form while the SKILL enter function runs.

Example

For the following user-defined SKILL enter function:

(defun MyStretchSpecial (...)
  ...
  (enterPoint ?cmdName "StretchSpecial" ...)
  ) ; defun

If you want to use the gravity feature for the function StretchSpecial when the command runs, use the following function:

(leRegisterUseGravity "StretchSpecial") ; Gravity now works for StretchSpecial
(MyStretchSpecial ...)

For as long as MyStretchSpecial function runs, the entered points will use gravity as per the options specified in the Layout Editor Options form.


Return to top
 ⠀
X