ObjSetAnglePoint Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:15

Description

Rotates the selected objects to given angle around the given point, in steps of 1°.

Syntax

errorcode = Page.ObjSetAnglePoint (int1, dim2, dim3)

int1

 angle. Positive values rotate counter-clockwise. Allowed values -360 to +360.

dim2        

X coordinate of the point the object should rotate around.

dim3        

Y coordinate of the point the object should rotate around

Remarks

Returns error code.

Context

Page designer

Example

This example rotates the selected object around it's centre, counter-clockwise:

dim iSense = 1

dim a = Page.getselectedangle

dim hc = Page.getselectionx + Page.getselectionwidth/2

dim vc=Page.getselectiony + Page.getselectionheight/2

Page.objsetanglepoint (a/10 + iSense, hc, vc)

To rotate clockwise, set the iSense to -1.