Table of Contents

Method CmdRotate

Namespace
vdWebLibrary
Assembly
JsPropertiesExtractor.dll

CmdRotate(object, object, double, CmdScriptCallback)

Rotates an array of vdraw entities around a base point. Check the function finished throw the passed scriptCallBack delegate

public void CmdRotate(object entities, object rotationCenter, double angle, CmdScriptCallback scriptCallBack = null)

Parameters

entities object

An array of vdraw entities or null so the user can pick the objects on screen.

rotationCenter object

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 double

The angle (in radians) to be used for the command or null in order for the user to select it on screen.

scriptCallBack CmdScriptCallback

Optional.A delegate of CmdScriptCallback type to be fired when the user action finish

Remarks

This command does not write to UndoHistory() and Script buffer. In order to do that use the scriptCommand.rotate(object, double, ScriptSelectDelegate)