%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
CmdCopy Method
See Also 
vdWebLibrary Namespace > vdrawObj Class : CmdCopy Method
entities
An array of vdraw entities or null so the user can pick the objects on screen.
from
The base point in World coordinates or null so the user can pick this point to the screen.
to
Another point representing where the copied objects will be placed in World coordinates or null so the user picks this point on screen.
Copies an array of vdraw entities and moves the duplicates from one point to another.

Syntax

JScript 
public function CmdCopy( 
   entities : Object,
   from : Object,
   to : Object
);

Parameters

entities
An array of vdraw entities or null so the user can pick the objects on screen.
from
The base point in World coordinates or null so the user can pick this point to the screen.
to
Another point representing where the copied objects will be placed in World coordinates or null so the user picks this point on screen.

Remarks

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

See Also