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

leSizeShape

leSizeShape(
d_shapeId 
g_resize
) 
=> l_shapes / nil

Description

Resizes a shape by the specified amount. A shape can be resized uniformly in all directions or differently in different directions.

Arguments

d_shapeId

The database ID of the shape to be resized.

g_resize

Specifies the amount by which the shape is to be resized. The shape can be resized uniformly in all directions by specifying a single value. The shape can also be resized in specific directions by specifying a list of values in the following sequence: left, right, top, and bottom. For example, (1 2 0.5 1).

Positive values increase the size of the shape; negative values decrease the size of the shape.

Valid Values: any positive or negative number

Value Returned

l_shapes

A list of the resulting shapes if they are resized.

nil

The shapes are not resized.

Example

Increases the size of the shape1 shape by 2 user units in all directions:

leSizeShape( shape1 2 )

Increases the size of the shape1 shape by user units in the following directions: 2 on the left, 1 on the right, 3 at the top, and 1 at the bottom:

leSizeShape( shape1 ‘(2 1 3 1))

Interactive Function

Enter this function with only the window ID argument; the system prompts you to point to the shape to size and specify resize value. If you do not specify w_windowId, the current window is used.

leHiSize( [ w_windowId ] ) => t / nil


Return to top
 ⠀
X