I am just trying to switch the direction of the AGV path using code. Is that possible?
I am just trying to switch the direction of the AGV path using code. Is that possible?
function_s(Model.find("AGVNetwork/StraightPath1"), "switchDirection");
@Sudheer Reddy,
EDIT: Matthew's method is much better, but I'll leave this here in case you want to change the location or orientation of the paths as well.
To switch the direction of the path, you change the spatialrz value by 180 degrees and adjust the location by the length of the path. I set this up in the example model attached. The path has a length of 10 and is initially set at an x location of 0, so by running the script shown in the image below, it switches the direction 180 degrees while maintaining it's location in 3D space.
16 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