Table of Contents

Method WhyNotMakeViewport

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

WhyNotMakeViewport(DxfEntity, CadSpace, out GeoAabb3)

Says why an entity cannot become a viewport by MVIEW's Object option, in the words of AutoCAD 2021: "Clip object must be closed." for a polyline, spline, ellipse or region that is not closed or has no area, "Invalid viewport clip object." for any other entity; null where it can, with the box of it, the frame the new viewport takes.

public static string WhyNotMakeViewport(DxfEntity candidate, CadSpace space, out GeoAabb3 box)

Parameters

candidate DxfEntity

The entity picked.

space CadSpace

The layout the viewport is made in.

box GeoAabb3

The box of the entity, where it can.

Returns

string

The reason, or null.

Exceptions

ArgumentNullException

Thrown when the candidate or the space is null.