The Ansys Innovation Space website recently experienced a database corruption issue. While service has been restored there appears to have been some data loss from November 13. We are still investigating and apologize for any issues our users may have as a result.

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