I tried this code, but it did not work: setchecked(getvarnode(node("Estoque Inicial 1", model()), "usebatching"),0);
I tried this code, but it did not work: setchecked(getvarnode(node("Estoque Inicial 1", model()), "usebatching"),0);
Lydia,
Here is a sample model that should do what you are attempting. I created a model with a single queue and then made a checkbox in the dashboard that toggles the batching process in the queue. To make the checkbox functional you need to untoggle the "edit mode" on the dashboard. In "edit mode" clicking on the check box will attempt to edit it instead of toggle it. I pointed the link for the check box to the "usebatching" variable of the queue.
I hope this helps,
Brandon
Brandon's answer is the best as it uses a Dashboard Widget to modify the batching. However, if you did need to set the batching using code rather than the Dashboard the code would be:
setvarnum(node("Estoque Inicial 1", model()), "usebatching", 0)
The setchecked() command is specifically used for checking a GUI check box.
5 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved