Hi,
I have lots of AGV straight paths.Some of paths conditional rule are rule1, others are rule2. How can I set up conditional rule using FlexScript. Thank's.
Hi,
I have lots of AGV straight paths.Some of paths conditional rule are rule1, others are rule2. How can I set up conditional rule using FlexScript. Thank's.
What exactly do you mean by "set up" a rule? Creating a new rule, assigning an existing rule to paths or use custom code to create a more complex rule than checking a label?
To assign an existing rule to a path you can use the following code: This example assigns "Rule 1" to "StraightPath1".
Object Path = Model.find("AGVNetwork/StraightPath1"); treenode rule = Model.find("AGVNetwork>variables/pathConditions/Rule 1"); Path.find(">variables/condition").value = rule;
13 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