Arbortext IsoDraw > Macro Language Reference > Window Commands > Palette Window Toolbox > Transforming the Illustration > Set Transform
  
Set Transform
The SET TRANSFORM command creates a transformation matrix. This matrix is used for all following commands until a restore command is executed. Therefore you should always restore the transformation matrix to normal with RESTORE TRANSFORM restore transform after using SET TRANSFORM.
SET TRANSFORMxyanglescaleSET TRANSFORMMATRIX2D matrix
x,y
Define the offset of the displacement.
ANGLE
Defines the angle of the displacement.
SCALE
Defines the scaling of the displacement.
MACRO trans

DEFINE i AS integer
DEFINE n AS integer
DEFINE x AS integer
DEFINE y AS integer

SET TRANSFORM 300 200 0 0.5
FOR n = 0 TO 75 STEP 15
SET TRANSFORM 0 0 n 1
FOR i = 90 TO 360 STEP 90
IF (i = 90)
x = 0
y = 200
END IF
IF (i = 180)
x = -200
y = 0
END IF
IF (i = 270)
x = 0
y = -200
END IF
IF (i = 360)
x = 200
y = 0
END IF
SET TRANSFORM x y i 1
CREATE LINE 0 0 100 0
RESTORE TRANSFORM
END FOR
RESTORE TRANSFORM
END FOR
RESTORE TRANSFORM
END MACRO