question

Youssef EM avatar image
0 Likes"
Youssef EM asked Youssef EM commented

Packing method on task executer

Hi everyone,

I have task executers that tranport items from one queue to another. The capacity of each one is 33 and the items are loaded vertically, like this:

Is there a way to edit the packing method so that the items are loaded horizontally in 3 lines (truck packing).
The result should be something like this, with 33 pallets.

Thanks !

FlexSim 19.0.0
task executerpackingtruck
1610706821580.png (490.3 KiB)
1610707134157.png (509.3 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

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Youssef EM commented

You set a location of every item entering in the event On Load by the property location. You need for your code the size of objects, the location and probably the content, which is expressed by length of subnodes. You get components of a size or location Vector of class Vec3 by the properties x,y,z.

You need also the property subnodes which I mentioned before. And it is not wrong to know that there are the properties last and first which eventually must be used with Objects casted down as (treenode).

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

Youssef EM avatar image Youssef EM commented ·

Thanks Jorg, I worked it out. I used the following code in an "On Load" Trigger.

1 Like 1 ·
1610912426564.png (54.5 KiB)

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.