Reply To: OpenCmpnts – Overwrite a User Defined Simulation (Tran) Result – post EOD calc

#9052
Mandip Kaila
Participant

Is this a core or custom result? What version is this?

Try something like:

// Get your scenario
Scenario scenario = ..

// Get your result types
ResultTypes results = ..;

// Set your amended result back
results.add(..);

// Store the result types in the scenario
scenario.setResultTypes(results);

Alternatively, you could always use a wrapper around around Sim.insertSimResults (JVS or toolkit depending on what you’re OC’ing in) – as this was historically used to “inject” data back into stored blobs.

Download PDF version

This field is for validation purposes and should be left unchanged.