question

Owen_liaw H avatar image
0 Likes"
Owen_liaw H asked Jeanette F commented

How to combine 2 boxes in one column ?

1645451032786.png

I use "pack" to join but it looks like fail.... I want the 2 boxes are attached together in vertical direction, not horizontal direction...

FlexSim 22.0.1
combiner
1645451032786.png (123.3 KiB)
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Owen_liaw H, was one of Jeanette F's or Jacob W2's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·
Jeanette F avatar image
0 Likes"
Jeanette F answered Jason Lightfoot commented

Hello @Owen_liaw H,

Like @Jacob W2 mentioned, a combiner needs a flowitem that is a container as the first item that enters the combiner. The box flow items are not considered container items in FlexSim. What I suggest is having the source create a pallet and then visually changing it to look like a box. You will also need a trigger event to change the size of the pallet as well.

1645505607585.png

1645505499162.png

combiner-JF.fsm

Another possibility would be to change the combiner setting to batch. You could keep both sources as the box flow item in this case. However the items will not be stacked. They will exit the combiner side by side.

1645506397246.png

1645506384595.png


1645505607585.png (21.5 KiB)
1645505499162.png (112.2 KiB)
1645506384595.png (21.7 KiB)
1645506397246.png (4.5 KiB)
combiner-jf.fsm (38.8 KiB)
· 5
5 |100000

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

Owen_liaw H avatar image Owen_liaw H commented ·

Yea, but i dont want the items arranged side by side, i want like these boxes stack at figure below (top view)

1645535944604.png


0 Likes 0 ·
1645535944604.png (1.4 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Owen_liaw H commented ·

We told you how to do this in another post. The steps are:

1) In the flowitem bin duplicate the pallet - change its shape to be the shape you want.

2) Add a packing method called 'sidebox' or something with the line of code to set the items location. In the example this is one line of code:

item.setLocation(0,-item.size.y,0);

3) Set the new flowitem's packing method to be 'sidebox' or whatever you called it.

4) Set the source on input 1 of the combiner to generate your new flowitem.


This is a better approach than using the pallet and changing its shape on the fly as it means the packing method is associated with the type of container and is therefore easier to manage.

combiner-jl.fsm

0 Likes 0 ·
combiner-jl.fsm (38.6 KiB)
Owen_liaw H avatar image Owen_liaw H Jason Lightfoot ♦♦ commented ·
Yea, I asked some question, but Sir didnt reply me

Now i understand what Sir doing already, thanks for help


0 Likes 0 ·
Show more comments
Jacob W2 avatar image
0 Likes"
Jacob W2 answered Owen_liaw H commented

@Owen_liaw H,

The reason the boxes are not stacking vertically is because the first item being sent into the combiner is not a container flow item. By changing the source that is connected to the first input port on the combiner to a tote or pallet, the boxes sent into the combiner will stack vertically. You will need to change the amount of boxes that the combiner needs for this to work. changing-flowitem-type.jpgquantity.jpgoverview.jpg

If you don't want to see the tote, you can disable its visual in the Toolbox. Go to the Toolbox, select FlowItem Bin and then find the Tote object. Once that is selected you can go into the More Visuals tab in the properties panel. Then all you need to do is deselect the show 3d shape option. This will hide the tote and only show the stacked boxes. 3d-shape-visual.jpg

I have included a model that shows how this was set up. Hopefully this helps answer your question. Combiner.fsm


quantity.jpg (14.3 KiB)
overview.jpg (99.5 KiB)
3d-shape-visual.jpg (65.3 KiB)
combiner.fsm (38.4 KiB)
· 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.

Owen_liaw H avatar image Owen_liaw H commented ·

Sir, ty for ur help but maybe i write something wrong...what i want is the 2 boxes are attached together by same z-size and different y-size


0 Likes 0 ·