我使用以下代码从我的Petrel项目中获取所有钻孔(Borehole Collection):
WellRoot wr = WellRoot.Get(PetrelProject.PrimaryProject);
BoreholeCollection bhc = wr.BoreholeCollection;
我可以得到钻孔名称(波纹管代码),但我正在努力寻找这个钻孔的类型(生产者或注射器)以及这个钻孔来自哪个模拟案例(我有两个模拟案例) Petrel项目)。
foreach (Borehole bh in bhc)
PetrelLogger.InfoOutputWindow("Borehole name " + bh.Name);
有人可以帮助我吗?
提前致谢!
答案 0 :(得分:1)
这会触及显示/ UI域;访问通过
解耦Borehole borehole; // this is the object you have
IBoreholeSettingsFactory factory = CoreSystem.GetService<IBoreholeSettingsFactory>();
IBoreholeSettings settings = factory.GetBoreholeSettings(borehole);
WellSymbolDescription symbolDescription = settings.WellSymbol;