Table of Contents

Method CmdRotate3D

Namespace
vdWebLibrary
Assembly
JsPropertiesExtractor.dll

CmdRotate3D(object, object, double, object, CmdScriptCallback)

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

public void CmdRotate3D(object entities, object rotationCenter, double angle, object axis, 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.

axis object

The axis as object for rotation.[1,0,0] for rotation around X axis, [0,1,0] for rotation about Y axis or [0,0,1] for rotation about Z axis same as simple CmdRotate.

scriptCallBack CmdScriptCallback

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

Examples

Start a new user action rotate3D command around the Y axis.

vdrawObj.CmdRotate3D(null, null, null, [0,1,0]);

Remarks

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