Method TargetViewport
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
TargetViewport(CadDocument)
Gets the viewport the VP columns act on, as AutoCAD's Layer manager does in a layout: the one worked through (ActiveViewport), else the one viewport selected on the paper of the layout shown; null on the Model tab, on the paper with no viewport alone selected, and for the sheet's own viewport.
public static DxfViewport TargetViewport(CadDocument document)
Parameters
documentCadDocumentThe document.
Returns
- DxfViewport
The viewport, or null.
Exceptions
- ArgumentNullException
Thrown when the document is null.