Table of Contents

Method ClickClipFlip

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

ClickClipFlip(CadDocument, string, int)

Clicks the arrow of a clipped reference, as AutoCAD 2021's clip frame does: the clip is turned inside out, so that what the boundary held is hidden and what lay outside it shown, or back; one undo step through ApplyEdit(string, IReadOnlyList<CadEditRecord>, Action<CadEditScope>). A clip turned inside out is kept as a keyhole in the boundary, a rectangle kept as two corners again when it is turned back.

public static CadEditResult ClickClipFlip(CadDocument document, string handle, int gripIndex)

Parameters

document CadDocument

The document.

handle string

The handle of the block reference.

gripIndex int

The index of the arrow, as Of(DxfEntity) gives it.

Returns

CadEditResult

What came of it: refused for an entity on a locked layer, or a grip that is not the arrow of a clip.

Exceptions

ArgumentNullException

Thrown when the document is null.