Ansys Learning Forum › Forums › Discuss Simulation › Photonics › Lumerical FDTD: How to toggle “Construction group” for “::model” through script? › Reply To: Lumerical FDTD: How to toggle “Construction group” for “::model” through script?
October 25, 2021 at 6:05 pm
Kyle
Ansys Employee
I don't think it's possible to set this for the model group through script. You can essentially make the model group a construction group by adding deleteall;to the beginning of the setup script. This you can do with script commands by extracting the model setup script as a string and appending "deleteall;\n" to the beginning:
´╗┐setup_script = getnamed("::model", "setup script");
setup_script = "deleteall;\n" + setup_script;
setnamed("::model", "setup script", setup_script);