Table of Contents

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

SelSet object

Entities to mirror (a vdSelection, single figure, or "USER"/null to prompt).

MirrorLinePoint1 object

First point on the mirror line, or "USER"/null to let the user pick it.

MirrorLinePoint2 object

Second point on the mirror line, or "USER"/null to obtain it interactively.

keepSourceObjects object

"yes" keeps the originals and mirrors copies; any other string (or null/"USER") asks the user whether to keep the source objects.

Returns

bool

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.