We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.

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?

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);