2019-08-23 15:26:31 +02:00
|
|
|
# Load ResInsight Processing Server Client Library
|
|
|
|
|
import rips
|
2021-01-26 20:48:01 +01:00
|
|
|
|
2019-08-23 15:26:31 +02:00
|
|
|
# Launch ResInsight with last project file and a Window size of 600x1000 pixels
|
2021-01-26 20:48:01 +01:00
|
|
|
resinsight = rips.Instance.launch(
|
|
|
|
|
command_line_parameters=["--last", "--size", 600, 1000]
|
|
|
|
|
)
|
2019-08-23 15:26:31 +02:00
|
|
|
# Get a list of all cases
|
2019-09-19 13:25:04 +02:00
|
|
|
cases = resinsight.project.cases()
|
2019-08-23 15:26:31 +02:00
|
|
|
|
2021-01-26 20:48:01 +01:00
|
|
|
print("Got " + str(len(cases)) + " cases: ")
|
2019-08-23 15:26:31 +02:00
|
|
|
for case in cases:
|
|
|
|
|
print("Case name: " + case.name)
|
2020-03-04 14:52:16 +01:00
|
|
|
print("Case grid path: " + case.file_path)
|