Support setting Wbs-parameters from Python.

This commit is contained in:
Gaute Lindkvist
2020-01-21 08:48:56 +01:00
parent 954bf1e02e
commit 56d141d4c3
20 changed files with 323 additions and 70 deletions

View File

@@ -18,6 +18,12 @@ class View(PdmObject):
PdmObject.__init__(self, pdm_object.pb2_object(), pdm_object.channel(), project)
self.view_id = pdm_object.get_value("ViewId")
def is_eclipse_view(self):
return self.class_keyword() == "ReservoirView"
def is_geomech_view(self):
return self.class_keyword() == "GeoMechView"
def show_grid_box(self):
"""Check if the grid box is meant to be shown in the view"""
return self.get_value("ShowGridBox")