Method CmdMirror
- Namespace
- VectorDraw.Professional.ActionUtilities
- Assembly
- VectorDraw.Professional.dll
CmdMirror(object, object, object, object)
Mirrors the current selection across a user-defined axis and optionally keeps the originals.
public bool CmdMirror(object SelSet, object MirrorLinePoint1, object MirrorLinePoint2, object keepSourceObjects)
Parameters
SelSetobjectEntities to mirror (a vdSelection, single figure, or
"USER"/nullto prompt).MirrorLinePoint1objectFirst point on the mirror line, or
"USER"/nullto let the user pick it.MirrorLinePoint2objectSecond point on the mirror line, or
"USER"/nullto obtain it interactively.keepSourceObjectsobject"yes"keeps the originals and mirrors copies; any other string (ornull/"USER") asks the user whether to keep the source objects.
Returns
Examples
vdDocument doc = vdFramedControl1.BaseControl.ActiveDocument;
// Mirror selected entities using user-picked axis and keep originals
doc.CommandAction.CmdMirror(null, null, null, "yes");
Remarks
Raises ActionStart, ActionEnd and
ActionError with the action name "CmdMirror".
The method builds a mirror matrix, applies it to the selection (or to copies when requested), updates undo history, and invalidates the affected extents so the view redraws correctly.