Notes and Tips for Netview

 
 
 

Turning Off Command Logging and Auto-inspection

Normally, scripts run from Netview log every command line to the command history. In addition, property editors open automatically when elements are created. However, you can turn off these behaviors temporarily in your script — see Preferences [SDK Guide]. This can speed up the performance of Netview scripts.

Using JScript in Netview Pages

When using JScript in Netview pages, you may find that it does not release objects after it has finished with them. This happens because JScript's garbage collection is not predictable. However, you can force it to release objects by refreshing the Netview page.

Refresh button

Using Enumerated Values in Netview Scripts

Enumerated values defined in the object model are not evaluated properly in Netview scripts. Therefore, you should use the integer value directly.

For example, use this:

LogMessage "Closed in U: " & bClosed(0)(0)
LogMessage "Closed in V: " & bClosed(1)(0)

Instead of this:

LogMessage "Closed in U: " & bClosed(siUDirection)(0)
LogMessage "Closed in V: " & bClosed(siVDirection)(0)

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License