Table of Contents

Method CmdCopy

Namespace
vdWebLibrary
Assembly
JsPropertiesExtractor.dll

CmdCopy(object, object, object, CmdScriptCallback)

Copies an array of vdraw entities and moves the duplicates from one point to another. Check the function finished throw the passed scriptCallBack delegate

public void CmdCopy(object entities, object from, object to, CmdScriptCallback scriptCallBack = null)

Parameters

entities object

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

from object

The base point in World coordinates or null so the user can pick this point to the screen.

to object

Another point representing where the copied objects will be placed in World coordinates or null so the user picks this point 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.copy(object, object, ScriptSelectDelegate)