I am facing following issue. I have a skill replay file to generate a netlist and runSimulation for an ADE-L state with amsdesigner. I need to delete the content of the field "exclude these library names from compilation" in the form Simulation->Options->AMS simulator...
I have already found a solution:
currentSession = sevSession(car(setof(x hiGetWindowList() x->sevSession)))sevSetEngineOptions(currentSession 'simOptions)hiiSetCurrentForm('_asii_ams1_AMSsimulator_form)_asii_ams1_AMSsimulator_form->page->page1->scroll1->compileExcludeLibs->value=""hiFormDone(_asii_ams1_AMSsimulator_form)
The issue I see with this implementation is that some strange variable _asii_ams1_AMSsimulator_form is used. I would prefer to use some asi function but I didn't find anything to set compileExcludeLibs. I have tried also with the env as:
ams.compilerOpts compileExcludeLibs string ""
but it works only for new state. It doesn't overwrite the field of an existing state.
If someone has a better idea how to do it, I would appreciate any tip.
asiSess=sevEnvironment(currentSession)asiEnvSetVal(asiSess 'compilerOpts 'compileExcludeLibs "")
thanks a lot. It is exactly what I was searching.
Thanks for your fast answer.