question

Patrick Cloutier avatar image
0 Likes"
Patrick Cloutier asked Matthew Gillespie commented

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

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,

FlexSim 18.1.1
network nodespeople modulepath
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

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Matthew Gillespie commented

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);
· 6
5 |100000

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

Patrick Cloutier avatar image Patrick Cloutier commented ·

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 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Patrick Cloutier commented ·

A-connect them to a network node

0 Likes 0 ·
Patrick Cloutier avatar image Patrick Cloutier Matthew Gillespie ♦♦ commented ·

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 0 ·
Show more comments

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.