How to let the taskexecutor flowitem to use the AStar?

How to let the taskexecutor flowitem to use the AStar?

chanykE2WUT
Explorer Explorer
28 Views
4 Replies
Message 1 of 5

How to let the taskexecutor flowitem to use the AStar?

chanykE2WUT
Explorer
Explorer

[ FlexSim 17.2.5 ]

Hi, how do I get the taskexecutor flowitem to use the AStar Navigation?

Thanks

David

0 Likes
Accepted solutions (1)
29 Views
4 Replies
Replies (4)
Message 2 of 5

chanykE2WUT
Explorer
Explorer

I have added contextdragconnection(token.item,model().find("AStarNavigator"),"A") this. But is there a simpler way?

David

0 Likes
Message 3 of 5

matt_long
Not applicable
Accepted solution

Unfortunately there is not AStar API object so you can't say something like AStar.addMember(token.item).

If you use the Create Object activity and set the Destination field to be the AStarNavigator object, the flowitem will be connected to AStar when it's created. (This works for NetworkNodes and AGV Control Points as well).

The other command you can use is addMember:

function_s(model().find("AStarNavigator"), "addMember", token.item);

There are also pick options in the Use Transport fields of 3D objects called AStar: Task Executer as Flowitem.

0 Likes
Message 4 of 5

chanykE2WUT
Explorer
Explorer

@Matt Long

Thanks. In People Module, how does the people connect to the AStar when they are created?

David

0 Likes
Message 5 of 5

matt_long
Not applicable

If you look at the Inner Flow of the Create Person activity (right click the activity), you can see that it uses a Create Object activity where it specifically checks to see if the AStar Navigator exists and if so, connects the created person to it by creating the person in the AStarNavigator object.

0 Likes