我正在构建一个插件,我需要使用海洋 API 访问 Reservoir 工程域数据。我可以使用 Simulation root 访问开发策略,但无法获取开发策略的类型。无论是历史策略还是预测策略。任何方式都可以知道这些信息。
问问题
247 次
2 回答
1
在 Petrel RE API 中面临多重限制,并且必须通过 EclipseKeywordEditor 来实现目标很多,我不得不说这是一个简单的。DevelopmentStrategy.StrategyType 属性可以提供帮助:
以下代码在 Petrel 2012.1 上为我工作:
SimulationRoot sroot = SimulationRoot.Get(PetrelProject.PrimaryProject);
DevelopmentStrategyCollection dsCol = DevelopmentStrategyCollection.NullObject;
if (sroot.HasDevelopmentStrategyCollection)
{
dsCol = sroot.DevelopmentStrategyCollection;
foreach (DevelopmentStrategy strat in dsCol.DevelopmentStrategies)
{
PetrelLogger.InfoOutputWindow(string.Format("{0} is a {1} strat",strat.Name,strat.StrategyType));
}
}
DevGuide 没有列出它,IntelliSense 没有显示它,但是您可以打开对象浏览器并查看它实际上是存在的(实际上是灰色的)。
于 2013-05-08T23:50:42.297 回答
1
不幸的是,没有 Ocean API 可以访问开发策略的类型。我会将您的用例添加到我们的需求系统中。
问候,卡罗尔
于 2013-01-03T15:06:26.733 回答