question

Christopher Morgan avatar image
0 Likes"
Christopher Morgan asked Cliff King answered

Syntax error '{' expecting identifier

Experiencing this as an error with the attached model. What would be the best way to handle this???

Flexscript ErrorMODEL:/Floor41>variables/objectrefline 1syntax error, unexpected '{', expecting identifier Could not finish parsing because of previous errors.

valetdepartmoderror.fsm

FlexSim HC 5.3.6
hcsyntax error
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Cliff King avatar image
0 Likes"
Cliff King answered

Not sure how it happened, but your Floor41 object lost half the script on its objectref variable. This variable is not even used by the floor object, but because the script had a syntax error in it (because it was missing half its lines), you were getting the error message. You could have deleted and recreated that floor object, or do what I did in the attached model, open the model tree, find the objectref variable node for the Floor41 object and delete the straggling bit of code left in the node.15241-valetdepartmoderror.fsm


5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.