Is there a way to batch entities inside a network? I am trying to use Enterprise library object `Batch' to group on a
particular node in a network. But I am getting a runtimeException at the point of exiting the 'batch' object "
Entity is not registered with the network and cannot move".
Andrei — 13.01.08
Yes, it is possible. Assuming the entities are batched at the network node "rectangle1", you would need to:
1. Place the object NetworkExit BEFORE the Batch
2. Specify rectangle1 as the Animationguide shape for Batch and choose the appropriate amination type, e.g. Bag
3. Place the object NetworkEnter AFTER the Batch
4. Specify the same network in the Network parameter of NetworkEnter and rectangle1 in the Entry node parameter
You are currently getting the error because Batch actually creates a brand new entity, which is not inside the network.
Hope this helps.
Singh — 14.01.08
Thanks Andrie for your helpful suggestion. But is it the only way. Isn't there any other simpler way. This means that
every time I am using batch, I have to exit the network and then enter the network again?
Victor Gleim — 15.01.08
Singh, if you need to use a Batch several times, you could create your own Active Object containing a NetworkExit, a
Batch, and a NetworkEnter. Then you should use this AO where you're supposed to use a Batch. So there is not need to
create three blocks each time but use only one.