Accessing specific entities of my model from the python API
-
I am writing a jupyter script for a simulation.
I want to be able to run the script several times, to try out new things, without the script recreating a new "Model" everytime (because then i keep having multiples of my model in the modelling tab).
How can I check my smash file for an existing model, from my script.
The goal would be to have a line of code, which first checks if there already is an existing model, before then running my "createModel" function.
How do I access that information from the script?
I also need to access that information to still initialize those model parts, so i can use them in the simulation (without having to recreate them every time).Any and all inputs would be greatly appreciated!