FlexScript Error

FlexScript Error

roald_w
Not applicable
169 Views
2 Replies
Message 1 of 3

FlexScript Error

roald_w
Not applicable

[ FlexSim 23.0.10 ]

Good day 🙂

Could someone please explain the following error message within my models:

1. Flexscript Error MODEL:/Tools/ProcessFlow/CurrentState/Wait for INV>variables/onWaitTimerFired Line 11 Invalid cast from char* to double

1. CSMTest.fsm

2. Flexscript Error MODEL:/Tools/ProcessFlow/CurrentState/Wait for INV>variables/onWaitTimerFired Line 11 Invalid cast from char* to double

CurrentStateModel.fsm

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

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

The On Wait Timer Fired field of the Wait for INV activity has a FlexScript error. Here are two options to fix it:

1. Remove the Set Label operation in that field and then add it again (so it brings in new updated code that doesn't have this issue).

OR

2. Click the Edit Code button and change the 'double' keyword to 'Variant' on line 11 that starts with 'Variant value = '

It seems that the default Set Label operation set on those activities is using old code that doesn't support being assigned a string value. We'll fix this for future bug fix releases.



Matthew Gillespie
FlexSim Software Developer

Message 3 of 3

roald_w
Not applicable

Thank you @Matthew Gillespie !

0 Likes