question

Leandro Meirelles avatar image
0 Likes"
Leandro Meirelles asked Leandro Meirelles commented

Move flow item out of the container and return to same position

Hello,

I got a container with a basic pack method that stores 6 flow items like the image below:


1721680594221.png

The operator needs, for each flow item inside the box, remove from box, do a visual inspection and place back in the same position. But when I remove the item from the container, the item's positions changes (not visually), and I cant place it back. For example, if I remove the first item, as soon as the item leaves, the second becomes the first and I can't use the code like these to index back: Model.find("QueueIN/Container1").subnodes[1].


What should I do?


Oh, and I don't know if its important, but this is my container packing method:

for (int i = 1; i <= 6; i++) {

// Check to see if the flowitem is the first one in

if (current.subnodes.length == 1) {

item.setLocation(0.05, -0.235, current.size.z - 0.1);

return 0;

}else {

item.setLocation(lastitem.location.x, lastitem.location.y + 0.05, lastitem.location.z);

}

}

FlexSim 24.1.1
pack method
1721680594221.png (314.8 KiB)
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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Leandro Meirelles commented

You might find this post helptful.

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

Leandro Meirelles avatar image Leandro Meirelles commented ·

Thanks Jason!

0 Likes 0 ·