Can I tweak the pull system of flow to have two conditions? I need it to match two labels that I've set in my line, one is for its part name, and one is for test type.
Can I tweak the pull system of flow to have two conditions? I need it to match two labels that I've set in my line, one is for its part name, and one is for test type.
Hi Carlo, You can change the pull requirement code to check two lables - open the code editor and replace it with this.
treenode current = ownerobject(c); treenode item = parnode(1); int port = parval(2); /***popup:SpecificLabel*/ /**Specific Labels*/ string labelname = /** \nLabel1: *//***tag:label*//**/"labelname1"/**/; double value = /** \nValue: *//***tag:value*//**/1/**/; string labelname2 = "labelname2"; double value2 = 1; return getlabelnum(item,labelname) == value&& getlabelnum(item,labelname2)==value2;
The popup will only display one label so altering the values will mean opening the code editor.
As you're on such an old version of FlexSim I'd strongly recommend you consider getting the latest version where your support options and modelling features and greatly enhanced.What do you mean by it didn't work? The code logic will work - but the pop-up template will only show one parameter. I advise you step through with the debugger to check the labels exist and you have the correct spelling etc. You need to change labelname2 and value2 to reflect the second label you want to check.
12 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