create network nodes based on input data

create network nodes based on input data

MPeyman
Not applicable
115 Views
3 Replies
Message 1 of 4

create network nodes based on input data

MPeyman
Not applicable

[ FlexSim 23.0.8 ]

Hi Dear All, in my attached model, I have created the network of nodes manually but now I want to change it so I want to create a network of nodes based on attached table (this table is come from excel file) that each nodes has a coordinate (without using GIS MAP) and connect them all together as it is in the model, also each nodes has a connected queues. how can I make it ?

nodelist.png

peyman-flex-model_original.fsm

0 Likes
Accepted solutions (1)
116 Views
3 Replies
Replies (3)
Message 2 of 4

jose_antonio_mad
Not applicable
Accepted solution

Hello @MPeyman,

If you don't want to use GIS, you can simply translate the nodes to XY coordinates and use a code to create them from the table. Create_NN_v23.fsm

To connect them, you can simply use the code contextdragconnection.

I hope I have been helpful.

0 Likes
Message 3 of 4

MPeyman
Not applicable
Dear @José Antonio MD , Thanks for your answer, is there anyway that in the script I connect all of the node except the first node to the queue, So each node has their own queue? and also connect the resource to all queues?
0 Likes
Message 4 of 4

jose_antonio_mad
Not applicable

Hello @MPeyman,

You just need to say what you want to connect and with what. You can use it inside the loop, outside or wherever you need it... create-nn-v23_AConnection.fsm

In the manual you can see the code ant it uses "A" or "S" connections: https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/CommandReference/Commands.html#contextdra...

0 Likes