scripting:api:base-document:active-view

ActiveView

Property of IBaseDocument

Returns active view of the document

Read-Only Property of type IBaseView

var pView = BaseDocument.ActiveView;
pView = BaseDocument.ActiveView
CComPtr<IBaseView> pView;
HRESULT hr = BaseDocument.get_ActiveView(&pView);