Make modeled well paths scriptable

This commit is contained in:
Gaute Lindkvist
2020-09-07 13:59:30 +02:00
parent 2e1bf89bff
commit 63803eeebd
5 changed files with 66 additions and 16 deletions

View File

@@ -0,0 +1,16 @@
# Load ResInsight Processing Server Client Library
import rips
# Connect to ResInsight instance
resinsight = rips.Instance.find()
# Example code
print("ResInsight version: " + resinsight.version_string())
modeled_well_paths = resinsight.project.descendants(rips.ModeledWellPath)
for wellpath in modeled_well_paths:
geometry = wellpath.well_path_geometry()
geometry.print_object_info()
reference_point = geometry.reference_point
reference_point[0] += 100
geometry.update()
geometry.print_object_info()