Closed leendertvanwolfswinkel closed 1 year ago
The events of the simulation that the simulation template refers to contains savedstates
and initial_savedstate
. The savedstates
are the states that have been saved during this simulation. We do not need them here. The initial_savedstate
is the saved state that was used to initialize the model at the start of this simulation. We do need that one.
We also need the list of saved states available for the threedimodel
that is used in the simulation template.
To do's:
threedimodel
contains no saved states, the option 'Saved state' and the dropdown should be disabled (greyed out)threedimodel
does contain saved states, the dropdown should be populated with those saved statesinitial_savedstate
, this saved state should be selected by default in the dropdown.@ldebek Tested, please merge :)
User:
"I ran a simulation in which I write a saved state (https://api.3di.live/v3/simulations/125425/events/). This also seems to have been successfully written (see URL).
Now, however, I want to start a new simulation with that saved state, but I cannot click this at initial conditions, because this option is grayed out, see screenshot."
Simulation ID: 125425 Schematisation "sgravendeel" (id 6678) Revision 25 (id 47897) Organisation: Nelen & Schuurmans Consultancy
Related issue: #357