Modify Object Output Value Manually

Modify Object Output Value Manually

cong_ding
Not applicable
69 Views
4 Replies
Message 1 of 5

Modify Object Output Value Manually

cong_ding
Not applicable

[ FlexSim 17.0.12 ]

Is there a way that we can modify an object's stat_output manually? It looks like this node is handled by FlexSim internally and user has no access to change it.

0 Likes
Accepted solutions (1)
70 Views
4 Replies
Replies (4)
Message 2 of 5

Jacob_Gillespie
Autodesk
Autodesk
Accepted solution

EDIT: Added FlexScript for 17.0

You can change it using FlexScript.

In FlexSim 17.0:

Object obj = model().find("Queue1");
stats_output(obj).value = 10;

From FlexSim 17.1 and on:

Object obj = model().find("Queue1");
obj.stats.output.value = 10;
Message 3 of 5

jing_chen
Not applicable

Hi, @Jacob Gillespie

The .stats can not works in below version FlexSim2017update2

0 Likes
Message 4 of 5

Jacob_Gillespie
Autodesk
Autodesk
@jing.chen

Thanks I didn't notice 17.0 was specified.

0 Likes
Message 5 of 5

cong_ding
Not applicable

Yes it works. Thanks!

0 Likes