MirrorAcross
ElementId MirrorAcross(this Element element, Plane plane, bool asCopy = false)Mirrors an element about a given plane (optionally as a copy).
Parameters
- elementElement
The element to mirror.
- planePlane
Mirror plane.
- asCopybool
If true, keeps original and creates mirrored copy.
Returns: The id of the mirrored element (or new copy), or ElementId.InvalidElementId if failed.
Example
Plane p = Plane.CreateByNormalAndOrigin(XYZ.BasisX, XYZ.Zero);ElementId mirrored = element.MirrorAcross(p, asCopy: true);