hexagon logo

Change default simulation script through command language?

I have a model that can configure itself into several vehicle configurations (based on a gui menu) and it contains several solver scripts (SIM_SCRIPT_Config1, SIM_SCRIPT_Config2, etc). Depending on the configuration the preferred solver script changes so I'd like that script to be pre-selected when the user opens the simulate dialog box. The dialog box appears to get its value for sim script from system_defaults. Is there any way to update the default simulation script in a model through command language? I can access the current default via the command below:
db_default(.system_defaults,"simulation script")
 
I've noticed that if I run a simulation with a particular script the default value does update to whichever script was run last, but ideally I'd like to avoid having to run simulations when I'm building the model from command language.
  • This GUI menu code is working for me:
     
             CMD= interface dialog_box display dialog_box_name= .gui.sim_int_panel
             CMD= interface field set field_name= .gui.sim_int_panel.c_scripted.f_script_name strings= "SIM_myscript1"
             CMD= mdi gui_utl_display_cremod_dbox mode= modify entity_name= SIM_myscript1
     
    The third line pops up the "modify simulation script" dialog box so I can quickly see what's in there.
     
    Greg