question

Mart G avatar image
0 Likes"
Mart G asked Jordan Johnson commented

Unable to use dropdown menu/list in activity blocks

At some point, I think after adding a decision block, I wasn't able to use the dropdown menu/list in any of my activity. The console gives the following lines:

exception: size_t treewin__OnCommand__flexguicontrols(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, TreeWin * t, int mx, int my)

ex: treewin__OnCommand__flexguicontrols

exception: size_t treewin__OnCommand__(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, TreeWin * t, int mx, int my)

ex: treewin__OnCommand__

exception: size_t treewin__OnCommand(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, TreeWin * t, int mx, int my)

exception: treewin__OnCommand

ex: OnCommand


I tried going back to older version but any of the "recent" versions will now have the same issue.

I can still edit the code in any of the insert boxes, it is truly only the GUI (also present in the error code) I believe.

FlexSim 22.0.0
gui error
· 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.

Patrick Zweekhorst avatar image Patrick Zweekhorst commented ·

Hi @Mart G ,

Have you tried the button Open Default Workspace?


1651656936839.png


When something goes wrong with a GUI or a view this is always a good option to try

0 Likes 0 ·
1651656936839.png (12.9 KiB)
Mart G avatar image Mart G Patrick Zweekhorst commented ·

Hi @Patrick Zweekhorst ,

Yes I have. I saw this in other questions so I did try. No luck

0 Likes 0 ·
Patrick Zweekhorst avatar image Patrick Zweekhorst Mart G commented ·
Are you able to share the model? If so we can take a look at what is going on.

Have you tried to close FlexSim and opening the model again?

0 Likes 0 ·
Show more comments

1 Answer

Patrick Zweekhorst avatar image
1 Like"
Patrick Zweekhorst answered Jordan Johnson commented

Hi @Mart G ,

Please change the label you are assigning the new state to to just idle and not idle with quotes. So you need to use:

1651658449080.png

And not:

1651658476502.png

Somehow this breaks all your dropdowns.
Good luck with your model.

Patrick

@Jordan Johnson , I would classify this as a bug. Could you put this on the dev list if you agree?


1651658449080.png (23.5 KiB)
1651658476502.png (22.0 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.

Mart G avatar image Mart G commented ·

Hi Patrick,

Thanks a lot for the help.

0 Likes 0 ·
Jordan Johnson avatar image Jordan Johnson ♦♦ Mart G commented ·

@Patrick Zweekhorst Yes, that is a bug, I'll add it to the list.


@Mart G I think you'll need to change your approach. The issue is that we record state for statistical purposes only, and model logic should never be based on state. You can see why in this model:

state-change-demo.fsm

The On State Change trigger for the processor prints the time and the new state to the output console when it fires. The model also clears the console on reset. You can see that On State Change fires when you click the reset button, and when you click the stop button (try clicking the stop button over and over). When the model runs, you can also see that the processor goes to the setup state, even though its setup time is zero. Similarly, the processor goes into the blocked state, even though it is never actually blocked.

If you need help coming up with another approach, post a new question, describing what you want to happen, and we can help you come up with something.

0 Likes 0 ·