02.05.2014 Views

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PetrelProject Class<br />

PetrelProject Class<br />

The PetrelProject class provides access to services that are associated with the<br />

current primary project. These services will change when the project is changed.<br />

PetrelProject is defined as:<br />

public static class PetrelProject<br />

{<br />

public static Project PrimaryProject;<br />

public static IProjectInfo ProjectInfo;<br />

}<br />

public static ICases<br />

public static IInput<br />

public static IModels<br />

public static IResults<br />

public static ITemplates<br />

Cases;<br />

Inputs;<br />

Models;<br />

Results;<br />

Templates;<br />

The PetrelProject class provides access to current project information in two forms.<br />

The ProjectInfo property returns an IProjectInfo interface. The IProjectInfo<br />

interface provides information about the project data. From it you can get the project file<br />

name, get the name of the directory where the project data is stored, determine if a<br />

project is currently open, and get information for files in the project. IProjectInfo is<br />

defined as:<br />

public interface IProjectInfo<br />

{<br />

bool IsClosed { get; }<br />

FileInfo ProjectFile { get; }<br />

DirectoryInfo ProjectStorageDirectory { get; }<br />

FileInfo GetFile(string relativeFileName);<br />

}<br />

<strong>Schlumberger</strong> Private<br />

Petrel Convenience Classes 5-233

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!