%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
CmdRotate Method
See Also 
vdWebLibrary Namespace > vdrawObj Class : CmdRotate Method
entities
An array of vdraw entities or null so the user can pick the objects on screen.
rotationCenter
A reference point object in World coordinates or null so the user can pick this point on screen. This point will be used as the rotation base point.
angle
The angle (in radians) to be used for the command or null in order for the user to select it on screen.
Rotates an array of vdraw around a base point.

Syntax

JScript 
public function CmdRotate( 
   entities : Object,
   rotationCenter : Object,
   angle : double
);

Parameters

entities
An array of vdraw entities or null so the user can pick the objects on screen.
rotationCenter
A reference point object in World coordinates or null so the user can pick this point on screen. This point will be used as the rotation base point.
angle
The angle (in radians) to be used for the command or null in order for the user to select it on screen.

Remarks

This command does not write to UndoHistory and Script buffer. In order to do that use the scriptCommand.rotate

See Also