Table of Contents

Method WhyNotClip

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

WhyNotClip(DxfViewport, DxfEntity)

Says why an entity cannot clip a viewport, in the words of AutoCAD 2021's VPCLIP: "Clip object must be closed." for one that is not a closed circle, ellipse, polyline or spline or a region, "Invalid: Clip entity not currently regen'ed." for a viewport or an entity of another layout; null where ClipTo(DxfEntity) takes it.

public static string WhyNotClip(DxfViewport viewport, DxfEntity candidate)

Parameters

viewport DxfViewport

The viewport to clip.

candidate DxfEntity

The entity picked to clip it.

Returns

string

The reason, or null.

Exceptions

ArgumentNullException

Thrown when the viewport or the candidate is null.