Method Mirror
Mirror<T>(IEnumerable<T>, GeoPoint2, GeoPoint2, bool)
Mirrors objects across the line through two points, as MIRROR does: a text stays readable under MIRRTEXT 0, a dimension too. Sends the queued changes with it.
public IReadOnlyList<T> Mirror<T>(IEnumerable<T> objects, GeoPoint2 first, GeoPoint2 second, bool eraseSource = false) where T : DxfEntity
Parameters
objectsIEnumerable<T>Objects read from this drawing.
firstGeoPoint2The first point of the mirror line, in the world.
secondGeoPoint2The second point; the app refuses a line no longer than its tolerance.
eraseSourceboolWhether the objects are mirrored where they stand rather than copied; false, as MIRROR's default.
Returns
- IReadOnlyList<T>
With
eraseSourcefalse copies of the new objects, in the order given; else new copies of the objects as they are now, under the same handles.
Type Parameters
TThe 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, as Move<T>(IEnumerable<T>, GeoVector2) says, or the two points are not a line. Nothing is applied.