v3.5
Opens the NetView with a specified URL (Uniform Resource
Locator).
A URL is standardized string used to specify a resource on the
Internet, such as an HTML document. The format of a URL is:
protocol://server.network.domain/path/resource
You can specify a file relative to the current installation by
using the environment variables: XSI_USERHOME, XSI_HOME. These
variables are replaced with the actual value when the command is
executed. The syntax for specifying the environment variable in the
filename is:
${VARNAME}
OpenNetView( [URL], [Reuse], [Flags] ); |
Parameter | Type | Description | ||||
---|---|---|---|---|---|---|
URL | String | A URL standardized string used to specify a resource on the
Internet, such as an HTML document.
Default Value: "" (empty string). NetView then prompts you to specify the HTML file to open. |
||||
Reuse | Boolean | Set to true to reuse the NetView with focus; otherwise, a new
copy of NetView is opened.
Default Value: True |
||||
Flags | Long | A variable that specifies whether to display the toolbar.
Default Value: 1
|
' ' This example opens NetView using an explicit URL ' OpenNetView "http://softimage.wiki.softimage.com/index.php/Main_Page" |
' ' This example creates a file in the user's directory and then opens ' the new file using the path as the environment variable. ' ' Create the file to open Dim fso, f, filename filename = XSIUtils.BuildPath( Application.InstallationPath(siUserPath), "helloworld.html" ) Set fso = CreateObject( "Scripting.FileSystemObject" ) Set f = fso.CreateTextFile( filename, True ) f.WriteLine "Hello World" f.Close ' Open NetView with the new file created in the user's directory OpenNetView filename |