Method GetTransformedCopy
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
GetTransformedCopy(GeoTransform3)
Gets a copy of the entity moved by a transformation, as AutoCAD's GetTransformedCopy does: an entity of the
same class and look in no file, to be added to one by AppendEntity(DxfEntity).
public DxfEntity GetTransformedCopy(GeoTransform3 transform)
Parameters
transformGeoTransform3The transformation.
Returns
- DxfEntity
The copy, with no handle, owner, reactors or extension dictionary; its extended data kept, and the contexts of an annotative one, as Clone() says. The copy of an annotative TEXT, ATTDEF or ATTRIB of contexts has the context it is shown at moved alone, and its record where that context is the default, but for its height, width factor and lean, which its record holds for every context, as AutoCAD 2021's
GetTransformedCopymoves it: moved by (10, 5), the TEXT shown at (11, 12) at 1:1 beside a default of 1:2 at (40, 12) is shown at (21, 17), its context of 1:2 left at (40, 12) (check D35c); its TransformBy(GeoTransform3) moves every context, and so does this of an MTEXT or an INSERT. The identity, to the bit, gives the entity's Clone(), of any class.
Exceptions
- ArgumentNullException
Thrown when the transformation is null.
- InvalidOperationException
Thrown when the entity is erased, as AutoCAD refuses an erased object.
- NotSupportedException
Thrown for a DxfUnknownEntity other than an MLINE or a REGION given another transformation than the identity.