문제

Within a Petrel plugin, I wish to determine the location of the current project's .sim directory, if it has one. Is there an Ocean API call I can use to get this information?

도움이 되었습니까?

해결책

You can get this directory from a simulation case object using the following method(s):

Case simCase = aSimulationCaseFromSomewhere;
string exportPath = EclipseFormatSimulator.GetArguments(simCase).CaseInfo.ExportPath;

Good luck!

Gaute

다른 팁

Yes this mechanism will work independent of whether your Simulation.Case is from one of the WellKnown simulators (E100, E300, FrontSim) or a Plug-in simulator based on the EclipseFormatSimulator class.

James.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top