User interaction trigger via clickable action buttons in views

19 views
Skip to first unread message

ITC

unread,
Jun 9, 2025, 8:54:34 AMJun 9
to JaamSim Users Discussion Group

Hello,

I would like to know whether there has been any consideration or development towards including some kind of "action buttons" within the view elements of JaamSim — buttons that a user could click during simulation runtime to trigger a binary output (e.g. switching from 0 to 1).

In the models I develop, this kind of user interaction would be particularly useful to initiate specific actions or events manually. Currently, I manage this by using an InputValue object that I manually set to 0 or 1 depending on whether I want to trigger a particular process. However, an integrated visual control (such as a clickable button within the view) would enhance usability and provide a more intuitive interface for manual control.

Has this functionality been considered or implemented in any way?

Best regards,

Harry King

unread,
Jun 9, 2025, 11:13:17 AMJun 9
to JaamSim Users Discussion Group
The 'ToggleButton' object does exactly what you want. You can find it in the Basic Objects library. Its 'Value' output returns 'true' or 'false' (i.e. 1 or 0) depending on the state of the button.

I've considered moving these user-clickable objects into a separate library to make them easier to find. At present, this library would contain ToggleButton, InputValue, and EntityLauncher. Do you think this change would be helpful?

Harry

Reply all
Reply to author
Forward
0 new messages