question

gabriel M4 avatar image
0 Likes"
gabriel M4 asked Joerg Vogel answered

Adding collision members dynamically to TaskExecuter FlowItens.

Hello everyone,

I would like to know a way to dynamically add members to a TaskExecuter FlowItem's Collision Members list from an ExitTrigger of a source that generates such TaskExecuter FlowItens.

It's basically Alan's answer in this thread: https://www.flexsim.com/community/forum/showthread.php?t=663. But unfortunately, I can't download his attachment anymore and every similar problem seems to redirect to this thread.

The point is to count the collisions between two TaskExecuter FlowItens (Vehicles and people), but even though I add each other to their collision members list in the FlowItem Bin, when they are created in the model, their list appears empty.

Thanks.

FlexSim 17.2.5
collisiontask executer flowitemcollision problem
· 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.

Joerg Vogel avatar image Joerg Vogel commented ·

Here is probably the file: collision-test-az.fsm.

0 Likes 0 ·
collision-test-az.fsm (450.1 KiB)
gabriel M4 avatar image gabriel M4 Joerg Vogel commented ·

Thank you, Jörg.

That seems to be the file, but when I try to open it (Flexsim 17.2), it appears empty.

Could you post here the code that adds the collision members?

Thank you again for your time.

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered

@alan.zhang

I attach your model from the community forum here in the Version 17.0:

collision-test-az-v17.fsm


5 |100000

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

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.