IWxWorkspace.LoadFromFile

Syntax

LoadFromFile(FileName: String);

Parameters

FileName. File name and path.

Description

The LoadFromFile method loads a workspace from a file.

Example

Executing the example requires that repository contains a workspace with the WSP identifier and the RP.p5w file.

Add links to the Andy, Drawing, Metabase system assemblies.

Sub Userproc;
Var
    mb: IMetabase;
    wsp: IWxWorkspace;
Begin
    
// Get workspace
    mb := MetabaseClass.Active;
    wsp := mb.ItemById(
"WSP").Edit As IWxWorkspace;
    wsp.LoadFromFile(
"c:\RP.p5w");
    
//Save changes
    (wsp As IMetabaseObject).Save;
End Sub Userproc;

After executing the example a workspace is loaded from a file.

See also:

IWxWorkspace