Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Photonics

Photonics

Topics related to Lumerical and more.

Lumerical FDTD: How to toggle “Construction group” for “::model” through script?

    • samkim
      Subscriber

      For structure groups, I know I can use the command

      set("construction group", true);

      to toggle if they are a construction group or not. The model has this option through the GUI, but when I try to toggle it through the script, it gives me the error

      in set, the requested property was not found

      Is there a different command for the ::model?

    • 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);
Viewing 1 reply thread
  • The topic ‘Lumerical FDTD: How to toggle “Construction group” for “::model” through script?’ is closed to new replies.
[bingo_chatbox]