Controlling Views with Digital Objects or VBA

The active view(s) can be controlled by using either a digital object or VBA code.

 

Using digital objects

In IGSS you can set a Controlling Object for global and diagrams views. This object will then point to a digital object, and will control the active views.

 

Note

The Controlling Object for global views is set from the Views menu, whereas the Controlling Objects for each diagram is set in the Diagram Properties dialog box.

 

When the Controlling Object's state is zero (state = 0), the first view listed in the Views menu is set as active. For example, for a global Controlling Object in state = 0, it will activate the first listed global view and if a Controlling Object, for a diagram view, is in state = 0, it will activate the first diagram view. For the next state of the digital object (state = 1), the second view from the list is set as the active view and so on.

 

The sequence of the views listed in the Views menu can be changed anytime. To do this, select a view from the View menu. Then select the View menu again and click Edit. From the Edit View dialog box, change the number in the Position field.

 

For an illustration of how to set up a digital object to control the active view see: Scenario of Use for Layers - Example 2

 

Using VBA

When using VBA code to control the active views the CurrentView property is provided. This property is available for both the Configuration VBA object (global views) and for each individual diagram VBA object (diagram views).

 

The associated active views are selected in a similar way as with digital objects, hence CurrentView = 0 corresponds to the first view in the Views list.