Class CadViewportClips
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Viewports clipped by an entity (VPCLIP): the outline a clipped viewport shows through, the entity and the viewport taken together when either is picked, and the viewport's frame fitted again when its entity is edited, as AutoCAD 2021 keeps them.
public static class CadViewportClips
- Inheritance
-
CadViewportClips
- Inherited Members
Methods
- OutlineOf(DxfViewport)
Gets the outline a clipped viewport shows model space through: its clip boundary (NonRectClipEntity) as a ring of paper units, a circle or the arcs of a polyline kept as arcs. Null for a viewport that is not clipped, and for one whose boundary has no outline the library reads, which is shown as the rectangle of its frame. A region gives a ring for each loop of each face, in the outline's Others.
- 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.
- 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.
- WithPartners(CadDocument, IEnumerable<string>)
Gets the handles given with, for each viewport clipped by an entity among them, that entity, and for each entity that clips a viewport among them, that viewport, as AutoCAD takes the two for one object when either is picked ("2 found"): those given, then the partners in ordinal order of their handles, each once.
- WithoutPartners(CadDocument, IReadOnlyList<string>)
Gets the handles given with a clipped viewport's partner left out where the viewport or its boundary comes before it, as AutoCAD's pick takes the two for one object: the Selection list of a click on the boundary shows one row, not the boundary and the viewport under it. The order of the rest is kept.