Using the Process Analyst > Process Analyst for Developers > Automation Model > IProcessAnalyst.LoadFromFile [Method]

IProcessAnalyst.LoadFromFile [Method]

Loads a specified view into the Process Analyst.

Defined As



[in] Indicates a relative path and filename of the view to load into the Process Analyst. See Remarks, below.


[in] Indicates which known location to load the file from.

Execution Result

If the function succeeds the return value will be Success. If the filename is invalid the return value will be InvalidArgument. If the path indicated by fileLocation is invalid or offline then the return value will be PathNotFound. If any other problem occurs then the return value will be GeneralFailure.


This method will replace the current view with the one in the specified file.

Absolute paths are not necessary for the filename as the method has been designed to load the specified file from [Run]:\Analyst Views (FileLocation_Local), my documents folder (FileLocation_User) or from the primary/secondary paths (FileLocation_Server).

When a file is loaded it will be synchronized with the other locations to verify each location has the file which is the latest. If the file you are loading is older then one which exists in another location it will be replaced. Synchronization will not occur when loaded from a Web-client.

See Also

FileLocation [Enumeration], IProcessAnalyst.PrimaryPath [Property][Get/Set], IProcessAnalyst.SecondaryPath [Property][Get/Set]

Calling Syntax

Assumes you have a page called "myPage" and the Process Analyst has been named "AN35".


Sub Example()
` Load the view from the server
myPage_AN35.LoadFromFile "Test1.pav", 0
End Sub


FUNCTION Example()
OBJECT hProcessAnalyst = ObjectByName("AN35");
_ObjectCallMethod(hProcessAnalyst, "LoadFromFile","Test1.pav", 0);