question

David Chan avatar image
0 Likes"
David Chan asked Matt Long commented

How to let the taskexecutor flowitem to use the AStar?

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

Thanks

David

FlexSim 17.2.5
astartaskexecutor flowitem
· 1
5 |100000

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

David Chan avatar image David Chan commented ·

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

David

0 Likes 0 ·

1 Answer

·
Matt Long avatar image
0 Likes"
Matt Long answered Matt Long commented

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.

· 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.

David Chan avatar image David Chan commented ·

@Matt Long

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

David

0 Likes 0 ·
Matt Long avatar image Matt Long David Chan commented ·

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 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.