Table of Contents

Method Move

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

Move<T>(IEnumerable<T>, GeoVector2)

Moves objects by a displacement, as MOVE does: a line from (0, 0) to (100, 0) moved by (10, 5) runs from (10, 5) to (110, 5) in the app. Sends the queued changes with it.

public IReadOnlyList<T> Move<T>(IEnumerable<T> objects, GeoVector2 displacement) where T : DxfEntity

Parameters

objects IEnumerable<T>

Objects read from this drawing (GetObject(string), GetObjects(CadObjectFilter), or what an edit gave back).

displacement GeoVector2

The displacement, in the world.

Returns

IReadOnlyList<T>

New copies of the objects as they are now, under the same handles, in the order given.

Type Parameters

T

The type of the objects given.

Exceptions

ArgumentNullException

Thrown when the list is null.

ArgumentException

Thrown when an object was not read from this drawing.

ArgumentOutOfRangeException

Thrown when a number is not finite.

CadRemoteException

Thrown when the app refuses: an object is gone, erased, inside a block, on a locked layer, or its owner does not allow the change. Nothing is applied.