MirrorAcrossLineInView
ElementId MirrorAcrossLineInView(this Element element, Line axisInView, View view, bool asCopy = false)Mirrors an element about a mirror line within a view by constructing a plane through the line with normal equal to view.ViewDirection.
Parameters
- elementElement
The element to mirror.
- axisInViewLine
Mirror line drawn in the view plane.
- viewView
The view supplying the plane normal.
- 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
ElementId id = element.MirrorAcrossLineInView(axisLine, activeView, asCopy: true);