Method GetViewports
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
GetViewports(bool)
Gets the viewports of the layout the drawing shows, as AutoCAD's GetViewports gives their ids: where it shows
paper space (TileMode false), the VIEWPORTs of PaperSpace in the order of the file, the one
of Number 1 that shows the sheet itself among them, as its layout's
GetViewports() gives them. A drawing ezdxf made, shown in paper space with a viewport 1 and one
200 by 150 on its sheet, gives the two.
public IReadOnlyList<DxfViewport> GetViewports(bool getPaperspaceVports)
Parameters
getPaperspaceVportsboolWhether the viewports of paper space are asked for, as AutoCAD's
bGetPaperspaceVports.
Returns
- IReadOnlyList<DxfViewport>
The viewports, a new list.
Remarks
Where the drawing shows model space, or the viewports of paper space are not asked for, none: the viewports AutoCAD gives then are the records of the VPORT table that tile model space, which ViewportTable gives.