Photonics

Photonics

How to access model properties in script file editor

Tagged: ,

    • lStolz
      Subscriber
      Hi,I have my simulation defined by property variables in the model object. Now I want to access (and change) these properties with a script. However I can not select the model object with select(model). So how do I do that?nCheersnLevinn
    • Greg Baethge
      Ansys Employee
      HiArray,nThanks for posting your question. The model object is a bit particular, to reference it in select or in setnamed, you need to use ::model. For example:nsetnamed(::model, prop, value);nI hope this will help!n
Viewing 1 reply thread
  • You must be logged in to reply to this topic.