Hi,
I have found that I cannot access a value of option-type paramters with flexscript ("Model.parameters.Parameter1"). I have checked that flexscript with braket works well (Model.parameters["Parameter1"].value). I attached the file.
Thank you.
Hi,
I have found that I cannot access a value of option-type paramters with flexscript ("Model.parameters.Parameter1"). I have checked that flexscript with braket works well (Model.parameters["Parameter1"].value). I attached the file.
Thank you.
Interesting. While the documentation states that both expressions are identical in behaviour, this apparently isn't true for the option type parameter.
The syntax with square brackets returns the rank of the currently chosen option. Whereas "Model.parameters.Parameter1" returns the value assigned to the currently active option.
I think it should be fixed because when I assign a value into the parameter, it chages chosen option, not assigned value. (Model.parameters.Parameter1 = 2)
14 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © 2025 Autodesk Inc. All rights reserved