Added Python example for replace case

(and replaced tabs with spaces in CMake file for GRPCinterface)
This commit is contained in:
Gaute Lindkvist
2020-09-23 10:02:18 +02:00
parent 75f507e2ef
commit df51c9becb
2 changed files with 131 additions and 121 deletions

View File

@@ -0,0 +1,9 @@
# Load ResInsight Processing Server Client Library
import rips
# Connect to ResInsight instance
resinsight = rips.Instance.find()
# Example code
print("ResInsight version: " + resinsight.version_string())
case = resinsight.project.case(case_id=0)
case.replace(new_grid_file='C:/Users/lindkvis/Projects/ResInsight/TestModels/Case_with_10_timesteps/Real0/BRUGGE_0000.EGRID')