OpenModelica / OMSimulator

The OpenModelica FMI & SSP-based co-simulation environment.
Other
71 stars 51 forks source link

API for creating variants #1312

Open robha67 opened 1 month ago

robha67 commented 1 month ago

The user should be able to decide if a "variant" ssd should be created when, for example, adding "new" SSV files.

On the top level: SystemStructure.ssd VariantA.ssd Resources

Arun thinks that it is already available, he will check @arun3688

arun3688 commented 1 week ago

@robha67 this functionality is already available and there are lot of examples available in the testsuite on how to use the API, see here https://github.com/OpenModelica/OMSimulator/blob/master/testsuite/simulation/activateVariant1.lua, if you face any issues i can help you on how to use this feature