Method Erase
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
Erase()
Erases the viewport, as Erase() erases an entity, and takes the overrides the layers keep for it out of their extension dictionaries, as AutoCAD does: an XRECORD of overrides left with none goes with its entry. A layout whose last active viewport it was (group 331 of its LAYOUT) names its viewport 1 instead, as AutoCAD 2021 does, or none where it has no other. The viewport of id 1 (group 69) of a layout of paper space, which shows the sheet itself, is refused, as AutoCAD keeps it.
public override void Erase()
Exceptions
- InvalidOperationException
Thrown when the viewport is in no file, or is erased, or is the viewport 1 of a layout of paper space.