Topics related to Lumerical and more

Change model user properties using script

    • NataliaM


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

      Thank you


    • 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
      Thank you
Viewing 2 reply threads
  • You must be logged in to reply to this topic.