How to access model properties in script file editer

script
model

#1

Hi,
I have defined a number of properties in the model setup variables. They define the geometry through a setup script. I ca easily change the parameter using
set(“slab_thickness”, value)
in the script prompt window. However, when I try the same line in the script window I recieve this error:
error line x : in set, the requested property was not found
How can I access the model property?

thanks


#2

Hi @snamnabat
You said that you want to change the value of the parameter.
For example write in the script promt .

slab_thickness=0.22e-06;
setnamed("::model",“slab_thickness”,slab_thickness);

You can also use the same commands in the script file editor and create a “.lsf” file.

Best regards