what is the flexscript equivalent for Refresh Path Links for AGV network?

what is the flexscript equivalent for Refresh Path Links for AGV network?

rhramac
Advocate Advocate
161 Views
1 Reply
Message 1 of 2

what is the flexscript equivalent for Refresh Path Links for AGV network?

rhramac
Advocate
Advocate

What is the flexscript equivalent for Refresh Path Links for AGV network - Entire Network?
would traversing through AGV network and "finalizeSpatialChanges" work? Thanks

Object agvnetwork = Model.find("AGVNetwork");
int count = 0;

for (int i = 1; i <= agvnetwork.subnodes.length; i++) {
Object pathObj = agvnetwork.subnodes[i];
function_s(pathObj, "finalizeSpatialChanges");
count++;
}

0 Likes
Accepted solutions (1)
162 Views
1 Reply
Reply (1)
Message 2 of 2

FelixMoehlmann
Collaborator
Collaborator
Accepted solution
function_s(path, "refreshAllPathLinks", 0/1);
// 0 for the entire network, 1 for only the path

In this case the code can be found in the Path object in the main tree library.

Screenshot 2026-06-26 090014.png

0 Likes