How to access model properties in script file editor

lStolzlStolz Member Posts: 3
edited April 22 in Photonics

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?

Cheers

Levin

Tagged:

Best Answer

  • greg_baethgegreg_baethge Posts: 153Ansys Employee
    Accepted Answer

    Hi @lStolz,

    Thanks 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:

    setnamed("::model", "prop", value);
    

    I hope this will help!

Sign In or Register to comment.