How to connect People to path network with People Module logic ?

How to connect People to path network with People Module logic ?

patrickABAWF
Collaborator Collaborator
110 Views
7 Replies
Message 1 of 8

How to connect People to path network with People Module logic ?

patrickABAWF
Collaborator
Collaborator

[ FlexSim 18.1.1 ]

I created a model like in the People Module tutorial with the Process Flow but I'd like to use Network Nodes instead of Astar to control them. How can I connect the People to the Path and make them follow the path right from the first Entrance Door? I use CreatePerson to that door but that doesn't attach the person to the Node.

Thanks,

0 Likes
Accepted solutions (1)
111 Views
7 Replies
Replies (7)
Message 2 of 8

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

Here are the two easiest ways:

1) Create the person in the Network Node connected to the entrance instead of the entrance itself. Doing this tells the CreateObject activity in the CreatePerson's inner flow to create the patient at that network node and to connect him to the network.

2) Use the reassignnetnode command. You could do this in a Custom Code activity right after creating the person, or you could do it in the OnExit trigger of the entrance. You would use code like this, (copied from the TaskExecuter as FlowItem pickoption):

treenode netnode = getnetnode(current, 1);
if (objectexists(netnode))
	reassignnetnode(person, netnode);


Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 3 of 8

patrickABAWF
Collaborator
Collaborator

I used the 1st method and it works when a person is walking alone on its own. But if its accompanied by staff, the staff doesn't follow the NN but the person does. And if I use a staff and transport, nobody uses the NN.

Any way to make them follow the NN?

When I try connecting it with a red connection, I get an error. I tried to use reassign and I get the same error.

0 Likes
Message 4 of 8

Matthew_Gillespie
Autodesk
Autodesk

A-connect them to a network node



Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 5 of 8

patrickABAWF
Collaborator
Collaborator

That's what I did when I said red connection but I get the error: requested destination not reachable from the network. Traveler: Staff1 Destination: Person1

0 Likes
Message 6 of 8

patrickABAWF
Collaborator
Collaborator

I might have solved it by creating the Person in a Door instead of an NN, then assigning it the Staff and then doing reassignnetnode. I will do further tests and confirm if it works later. Thanks,

0 Likes
Message 7 of 8

patrickABAWF
Collaborator
Collaborator

No it doesn't work after 4 hours of trying everything. It works for escort person but not for transport person. See attached sample model.

Thanks a lot,

people-transport-problem.fsm

0 Likes
Message 8 of 8

Matthew_Gillespie
Autodesk
Autodesk

This is an issue with the NetworkNavigator. It won't let a TE travel to another TE over the network. This is what the Escort and Transport activities are doing if you look at their inner flows. They're telling the staff to travel to the patient and/or the wheelchair. The Default and AStar navigators are fine with this, but not the Network navigator.

We're thinking of updating the Network navigator to allow this in 18.2, but for now you would need to create your own subflows that instead of sending the staff to a TE would send them to the network node the TE is attached to using the gettenetnode command:

gettenetnode(token.person)


Matthew Gillespie
FlexSim Software Developer

0 Likes