Photonics

Photonics

Topics related to Lumerical and more

Change model user properties using script

    • NataliaM
      Subscriber

      Hello!

      How do I change the model user properties through the Lumerical script file?

      Thank you

      Natalia

    • Guilin Sun
      Ansys Employee
      Like any other object, you can use this script to set the parameters:
      setnamed("::model","aa",3); # "model" is a special object so it needs "::" before its name
      If it is for group parameter, you can use
      setnamed("group_name","var_name", value);
      Please note that all values are in MKS unit in script by default, which is different from GUI where you can see/set derived units, such as um in length instead of meter, and fs instead of second.
      The variables must exist before using the above script.

    • fuduji
      Subscriber
      Thank you
Viewing 2 reply threads
  • The topic ‘Change model user properties using script’ is closed to new replies.