2019-08-19 06:46:14 -05:00
|
|
|
############################################################################
|
|
|
|
# This example returns the currently selected cases in ResInsight
|
|
|
|
# Because running this script in the GUI takes away the selection
|
|
|
|
# This script does not run successfully from within the ResInsight GUI
|
|
|
|
# And will need to be run from the command line separately from ResInsight
|
|
|
|
############################################################################
|
|
|
|
|
2019-06-03 14:11:27 -05:00
|
|
|
import rips
|
2019-05-20 06:21:02 -05:00
|
|
|
|
2021-01-26 13:48:01 -06:00
|
|
|
resinsight = rips.Instance.find()
|
2019-09-19 06:25:04 -05:00
|
|
|
if resinsight is not None:
|
2019-09-19 07:02:23 -05:00
|
|
|
cases = resinsight.project.selected_cases()
|
2019-06-03 07:33:16 -05:00
|
|
|
|
2021-01-26 13:48:01 -06:00
|
|
|
print("Got " + str(len(cases)) + " cases: ")
|
2019-06-03 07:33:16 -05:00
|
|
|
for case in cases:
|
|
|
|
print(case.name)
|
2021-01-26 13:48:01 -06:00
|
|
|
for property in case.available_properties("DYNAMIC_NATIVE"):
|
2019-06-03 07:33:16 -05:00
|
|
|
print(property)
|