The capacity is a variable in the attribute branch of the object tree.
The variable name is "maxcontent".
model().find("Processor1").as(Object).attrs.variables.subnodes["maxcontent"].value = 4;
or non dot syntax
setvarnum(model().find("Processor1"),"maxcontent",4);
A long command line is shortened by splitting into functional parts:
Object proc1 = model().find("Processor1");
proc1.attrs.variables.subnodes["maxcontent"].value = 4;
"current" is the reference of the Processor1 in its triggers
current.attrs.variables.subnodes["maxcontent"].value = 4;
Thanks so much for attending to my questions. Exactly what i was looking for. Worked perfectly for me.
when increasing the capacity of an already full processor you'll want to call receiveitem on the processor to immediately take a new item to process.
Example model with a user command setProcessCapacity attached. setprocessorcapacity.fsm
@jason.lightfoot Wow... exactly what i was looking for... Thanks a million for attending to my question.
9 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