FlexScript help

FlexScript help

10Dulkar
Not applicable
15 Views
2 Replies
Message 1 of 3

FlexScript help

10Dulkar
Not applicable

[ FlexSim 22.1.4 ]

Can anyone help with a flexscript code to access and change the values of Speed Table's speed_multiple with 2 content and 3 content.


1670346272756.png

0 Likes
Accepted solutions (1)
16 Views
2 Replies
Replies (2)
Message 2 of 3

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

You can get the speedtable variable and assign it to a Table variable and then access it using the Table API, like this:

Table speedTable = getvarnode(Model.find("TrafficControl1"), "speedtable");
speedTable[1][2] = 0.1;
speedTable[2][2] = 0.3;


Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 3 of 3

andrew_o2
Not applicable

Hi @sachin T3, was Matthew Gillespie's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes