hello,
I am trying to change the process time of a processor using a script.
I am able to access the node but my changes are not considered.
here is my code
hello,
I am trying to change the process time of a processor using a script.
I am able to access the node but my changes are not considered.
here is my code
Hi Gilles,
I've tried this code on a dummy and it works just fine:
string processTimeAuto = "Object current = ownerobject(c);\nObject item = param(1);\nreturn 3600/Table(\"GlobalTable1\")[1][1];"; treenode myNode2 = Model.find("Processor1>variables/cycletime"); myNode2.value = processTimeAuto; switch_flexscript(myNode2,1); buildnodeflexscript(myNode2);
It looks like the problem was the way of assigning the string to the node.
I hope it helps!
10 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