Scope: Schematic editor
Object: Application Object
Access: Read-Only
Prerequisites: None
Returns the ActiveView collection for the currently activated schematic or symbol.
Application.ActiveView
None
IVdView. The View Object for the currently activated Schematic or Symbol window.
Xpedition Designer has the concept of an active view. This is the active document window if Xpedition Designer is visible. The view is used to control zooming, appearance and supports other operations. This property contains an automation interface pointer to Xpedition Designer's currently active view. If no document is open there will not be an active view and this call will return NULL.
ActiveView is a direct way to go from the Application Object to the currently active View. It returns a view object. The common mistake that programmers make with this interface is to forget that if no documents are open then there is no active view and this call will return NULL. In VBSCRIPT the way to test for this condition is by using the Is Nothing statement.
Test to see if there is a View.
If ActiveView Is Nothing Then
MsgBox "No View present"
Else
MsgBox "View present"
End If