2020-09-07 06:59:30 -05:00
|
|
|
# Load ResInsight Processing Server Client Library
|
|
|
|
import rips
|
2021-01-26 13:48:01 -06:00
|
|
|
|
2020-09-07 06:59:30 -05:00
|
|
|
# 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()
|
2021-01-26 13:48:01 -06:00
|
|
|
geometry.print_object_info()
|