Hi,
I have a model where there are two possible areas the AGV can work in. I have connected the AGV to a CP in area 1, but now I want to change this in the OnReset trigger of my model to a CP in area 2. This CP is the originCP of the AGV, but you can only read this value and not set it. Using agv.currentCP = newCp or reassigncp does not work in the OnResetTrigger. I have also tried to use the contextdragconnection command in the OnResetTrigger, but this gives a pop up (where I need to select Traveler).
How can I change the start location for the AGV? The code line below does work, but does not look so nice to use.
Model.find("AGVNetwork>variables/agvs/TaskExecuter1/resetPoint").value = newCP;
You can see my attempts in the OnResetTrigger in the example model:]
Thanks in advance,
Patrick