question

Sebastián Cañas avatar image
0 Likes"
Sebastián Cañas asked Sebastián Cañas commented

Update route type using FlexScript in GIS Navigator

Hi all,

I'm using FlexScript to change a point's latitude and longitude within the GIS navigator, but I realized I need to update the route as well, otherwise the location's point changes, but the origin of the route linked to that point keeps from the former location.

How could I update the route type using FlexScript?

1662059315562.png

Thanks!

FlexSim 22.0.7
flexscriptgis
1662059315562.png (688.2 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Jacob Gillespie avatar image
0 Likes"
Jacob Gillespie answered Sebastián Cañas commented

updateType is the route type. You have that in your screenshot.

Or maybe you are looking for:

function_s(navigator, "updateRoute", routeNode);

Maybe also:

function_s(navigator, "setMapsDirty", GIS_DIRTY_ROUTES);
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Sebastián Cañas avatar image Sebastián Cañas commented ·

Thank you! It worked using "updateRoute", the other one didn't.

updateroute.gif

0 Likes 0 ·
updateroute.gif (535.2 KiB)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.