Table of Contents

Method TransformBy

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

TransformBy(GeoTransform3)

Moves, turns, scales or mirrors the entity by a transformation, as AutoCAD's TransformBy does: its record is written anew with the new geometry, its look kept, and its extended data moved with it in the same writing, as XDataTransformBy(GeoTransform3) moves it: a world position (1011) moved, a displacement (1012) and a direction (1013) turned, a distance (1041) and a scale factor (1042) scaled. An entity with none of those keeps its extended data's bytes. Each class moves its own geometry as its page says.

public void TransformBy(GeoTransform3 transform)

Parameters

transform GeoTransform3

The transformation.

Exceptions

ArgumentNullException

Thrown when the transformation is null.

ArgumentException

Thrown where the class refuses the transformation, as an INSERT one that would shear it; nothing is written then.

InvalidOperationException

Thrown when the entity is erased.

NotSupportedException

Thrown for an entity whose type the library keeps as it is, a DxfUnknownEntity (an MLINE or a REGION is moved by a transformation that scales alike).