I can not change the father point of AGV.2.fsm
I can not change the father point of AGV.2.fsm
Hi @Zhun Z, was Jeanette F's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.
Hello @Zhun Z,
When the Task Executer is attached to the control point is a part of the AGV network and cannot be moved from it with your command. Your command does work if you remove the connection between the Task Executer and the AGV control point.
Are you trying to use code to set what control point the AGV resets at?
You can do that with something like the following.
Object cp = Model.find("CPname"); AGV agv = AGV(Model.find("TaskExecuter")); agv.resetCP = cp;
When I try to open the model you attached in an earlier version of FlexSim it says that it was last saved in 23.0. If you provide me with a new model in the earlier FlexSim version then I can alter it. However I provided everything that I did in the text of my answer, so you should be able to implement without a model. All that is in the saved model is a script window with the code snippet.
19 People are following this question.
© 1993- FlexSim Software Products, Inc. All Rights Reserved.
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.