Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

txMoveFigSet

txMoveFigSet(
T_figSet
l_transform
)
=> t / nil

Description

Moves each figure in the given FigSet using the specified transform.

Arguments

T_figSet

ID of the FigSet.

l_transform

list(g_offset t_transform [f_scale])
A transformation object.

where,

  • g_offset: list(f_offsetX f_offsetY) An offset vector.
  • t_transform A transformation name. Valid values are “R0”, “R90”, “R180”, “R270”, “MX”, “MXR90”, “MY”, and “MYR90”; or, their corresponding symbols such as 'R0, 'R90, 'R180, 'R270, 'MX, 'MXR90, 'MY, and 'MYR90.
  • f_scale A scale ratio (optional). Default value is 1.0.

Value Returned

t

The figures were transformed successfully.

nil

Returned in case of failure.

Examples

Transforms the figures in the FigSet fs0 by the transformation value of R90.

fs0 = txCreateFigSet(cv "fs0")
> tx@0x254996a0
txAppendObjectToFigSet(fs0 dbCreateRect(cv '(0 "drawing") '((0 0) (200 100))))
> t
txMoveFigSet(fs0 '(((0 0) "R90")))
> t
txGetFigSetData(fs0 0)~>bBox
> ((-100.0 0.0) 
>     (0.0 200.0)
> )

Related Topics

FigSet Functions


Return to top
 ⠀
X