How can I tell when a viewport (any viewport) in paper space is currently active. Is there a setvar for this?
Please see my attachment to visually see what I mean.
This is actually related to a .NET programming error, whereby even when the drawing is in Paper space, if a viewport is active, I am unable to programmatically access the Layout. I need to be able to, at a minimum, detect this condition, then switch back to full paper space (i.e. de-activate the viewport) if possible.
Solved! Go to Solution.
Probably better ways, but CVPORT = 1 when there are not active viewports in the current layout.