question

Shinya O avatar image
0 Likes"
Shinya O asked Shinya O commented

Syntax error when adding pick option

Hi,

I encountered a syntax error when adding pick options.

It looks like there's something wrong with the auto-generated flexscript.

This phenomenon was found in FlexSim2021.0 and was not improved even after converting to FlexSim2023.0.

It's also strange that the "{" is green because there are no blank lines on lines 65 and 66 of the On Arrival Trigger in DP1.

I would like to explain this phenomenon to my customer, do you have a good explanation?

Thanks in advance.

1689731883714.gif

1689732774288.png

DP_sample.fsm

FlexSim 23.0.8
pick optiondesion point
1689731883714.gif (1.2 MiB)
1689732774288.png (25.0 KiB)
dp-sample.fsm (36.5 KiB)
· 2
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

Kavika F avatar image
1 Like"
Kavika F answered Shinya O commented

Hey @Shinya O, for the first issue, I can replicate your error with the model you've provided, but I can't seem to replicate it with a new Decision Point I drag out from the Library. I'm using v23.0.9, and the panels look slightly different when you select the different DPs. Also, if you remove some of the existing triggers and add them back, it seems to work fine. Is there a specific set of steps that you take to produce this error consistently?

For the second issue, that seems to be a visual bug considering the code still runs even with that "commented" curly brace. I'll add that to the dev list - to fix the syntax highlighting in that scenario. Thank you for pointing this out.

· 4
5 |100000

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