Determine the location of a project's .sim directory via the Ocean API?

StackOverflow https://stackoverflow.com/questions/11433024

  •  20-06-2021
  •  | 
  •  

سؤال

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