question

Jigar P avatar image
0 Likes"
Jigar P asked Kavika F commented

Moving Trucks as Flow Items in GIS Map between 2 nodes using Process Flow

I am trying a very basic Model of moving a Truck as a flow item at some rate from 1 Node to Another. I tried placing the Truck onto the node 1 and then travel to another node, but however, it doesn't work. I also tried assigning a Node to the truck but it doesn't travel to the next node. What am I missing here?

Truck_GIS_Movements.fsm

FlexSim 22.1.0
gisnetworknodestrucks
· 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.

Kavika F avatar image Kavika F ♦ commented ·

Hi @Jigar P, was one of Phil BoBo's or Jigar P's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. 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 unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Phil BoBo avatar image
1 Like"
Phil BoBo answered Phil BoBo edited

You can use the command contextdragconnection() to connect a Task Executer to a GIS Point.

Object InNode=Model.find("GISNavigator/Factory1");
contextdragconnection(token.Truck, InNode, "A");

truck-gis-movements_1.fsm


· 3
5 |100000

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

Jigar P avatar image Jigar P commented ·

Hi Phil. Thanks for the help. This works. However, I don't see the Truck Movement. It is just the yellow square that moves from Node 1 to another.

1651560935483.png

0 Likes 0 ·
1651560935483.png (717.4 KiB)
Phil BoBo avatar image Phil BoBo ♦♦ Jigar P commented ·

The GIS Map draws the shape of the object. If the object doesn't have a shape, it draws a colored square.

The default truck flowitem doesn't have a specified shape.

1651589496691.png

It is composed of sub-components with individual shapes:

1651617432617.png

If you want the GIS Map to draw a truck shape, then add a new TaskExecuter flowitem and set its shape to the full truck shape:

1651617440884.png

truck-gis-movements_2.fsm

1 Like 1 ·
1651589496691.png (143.6 KiB)
1651617432617.png (183.0 KiB)
1651617440884.png (138.8 KiB)
Luis Gustavo Freitas avatar image Luis Gustavo Freitas Jigar P commented ·

Hi @Jigar P, apparently there is some problem with the shape of the truck flowitem bin in your model, cause when i put other flowitens (of task executors) like Man and Women it works fine.

You could try to replicate the model in a new file to see if the shape problem continues or not.

Another workaround to this would be create another TaskExecuter FlowIten in the FlowIten Bin and put some shape you want in it, like i did in the model attached with the ambulance.

truck-gis-movements_NewShape.fsm

1 Like 1 ·

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.