1

是否可以通过 Ocean 创建和读取/写入用户定义的井属性?如果是这样,它是如何完成的?如果没有,对即将发布的版本有什么计划吗?

“用户定义的井属性”是指在井属性文件夹和井管理器中看到的属性。

4

3 回答 3

1

您可以通过(连续/离散)创建用户定义的井属性:

BoreholePropertyCollection.CreateProperty(Template, String);
BoreholePropertyCollection.CreateDictionaryProperty(Template, String);

然后,您可以通过以下方式为一口井(海洋术语中的 Borehole)设置此属性(海洋术语中的 BoreholeProperty)的值:

Borehole.PropertyAccess.SetPropertyValue(thePropertyCreatedAbove, propertyValue);

Ocean 创建的属性的行为与从 Petrel 创建的任何其他用户属性一样。

于 2011-10-07T09:57:40.370 回答
1

string 和 DateTime 属性在 Ocean 中表示为 DictionaryBoreholeProperties,您可以通过指定以下类型来创建它们:

BoreholePropertyCollection.CreateDictionaryProperty(typeof(string), "Test property");
BoreholePropertyCollection.CreateDictionaryProperty(typeof(DateTime), "Test property");
于 2011-10-12T13:57:34.870 回答
0

您可以通过调用创建字符串属性:


BoreholePropertyCollection.CreateDictionaryProperty(typeof(string), "My string attribute")

您可以通过调用创建布尔属性:


BoreholePropertyCollection.CreateDictionaryProperty(typeof(bool), "My bool attribute")

并且,您可以通过调用创建日期时间属性:


BoreholePropertyCollection.CreateProperty(typeof(System.DateTime), "My date attribute")

于 2011-10-17T15:26:09.583 回答