FLexScript Error Variables

FLexScript Error Variables

stella_m_mahakian_homedepot_co
Not applicable
604 Views
2 Replies
Message 1 of 3

FLexScript Error Variables

stella_m_mahakian_homedepot_co
Not applicable

[ FlexSim 24.2.0 ]

I have been trying to resolve this issue of assigning variables. See example showing in the image. Unfortunately, I need help resolving this Primer_4-3a.fsm1727906111712.png

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

regan_blackett
Autodesk
Autodesk
Accepted solution

Hi @Stella,

The FlexScript error in your screenshot is because the black-lettering word None is being assumed to be a bit of custom code that you have written into that text box. Since the system thinks it's code, it sees it and says, "I don't know what that word means". If you truly don't want to use that property field, click the red X next to it so that it replaces your "None" with a purple "None", which the system recognizes.

There's a couple of other things in that activity that may cause you some issues.

First, in you "Create In" property you have the expression Storage[token.Storage], the word "Storage" has a special meaning in FlexSim's language, and I would recommend avoiding using it as a label or variable name to avoid confusion.

Second, The Create In field is expecting a reference to a specific object in the 3D model where the created components can be placed, like a Queue or a Processor. Your expression would try to put the created components into an Array-indexed position within the Storage class-object of FlexSim's language. "Storage" is more like concept that defines what Storage objects can do, rather being a storage object itself so we can't put things inside it.


0 Likes
Message 3 of 3

stella_m_mahakian_homedepot_co
Not applicable
Thank you. My error disappeared after I deleted None and after I made changes to the Storage name to Storehouses.
0 Likes