question

MPeyman avatar image
0 Likes"
MPeyman asked José Antonio MD commented

create network nodes based on input data

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

FlexSim 23.0.8
network nodes
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

·
José Antonio MD avatar image
0 Likes"
José Antonio MD answered José Antonio MD commented

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.


create-nn-v23.fsm (25.7 KiB)
· 2
5 |100000

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

MPeyman avatar image MPeyman commented ·
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 0 ·
José Antonio MD avatar image José Antonio MD MPeyman commented ·

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#contextdragconnection

0 Likes 0 ·

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.