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")

以下を呼び出すことにより、bool属性を作成できます。


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

また、次を呼び出すことで日時属性を作成できます。


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

于 2011-10-17T15:26:09.583 に答える