MovePoint

Syntax:

MovePoint( Index, PosX, PosY )

Parameters:

Index – Index of point you wish to move. To move a point at the end of the current contour, pass -1 as the index. This index is zero based (i.e. the first point is point 0). This parameter is optional and the default is -1.

PosX – The new X coordinate of the point. This parameter is required.

PosY – The new Y coordinate of the point. This parameter is required.

Note:
All positions are in untransformed page coordinates. To avoid making your calculations too complex we strongly advise using untransformed (i.e. not rotated or scaled) frames when using the drawing functions.

Remarks:

This function allows existing points in a line or shape (drawn using the script drawing commands) to be moved.

Note:
This command cannot be used to modify polygons drawn using the editor drawing tools.

Note:
All lines and shapes added to any individual frame are created as part of a single contour (this is a single continuous line). Creating intersecting shapes will produce gaps in the shape. To draw multiple independent shapes, use multiple frame objects.

image\Script_Button.jpgExamples