Table of Contents

Method Scale

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

Scale<T>(IEnumerable<T>, GeoPoint2, double)

Scales objects about a base point, as SCALE does: a circle of radius 10 scaled by 2 is one of radius 20. Sends the queued changes with it.

public IReadOnlyList<T> Scale<T>(IEnumerable<T> objects, GeoPoint2 basePoint, double factor) where T : DxfEntity

Parameters

objects IEnumerable<T>

Objects read from this drawing.

basePoint GeoPoint2

The point that stays where it is, in the world.

factor double

The factor, above nought.

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 or the factor is not above nought.

CadRemoteException

Thrown when the app refuses, as Move<T>(IEnumerable<T>, GeoVector2) says. Nothing is applied.