question

Sunlicense avatar image
0 Likes"
Sunlicense asked Sunlicense commented

Item in the wrong position

Hello everyone, I have a problem that needs an answer, please help me.

I use the BasicFR1 as a 3d button. When I click it, I want to insertcopy a flowitem to Entrytransfer1.

But after I clicked the button, the item is not in the entrytransfer1 position first, then it will jump to the entrytransfer1 .

How can I fix this problem ? Thanks very much.

I Item in the wrong position.fsmitem-is-in-wrong-position.png


FlexSim 21.1.2
flexsim 21.1.2position item
5 |100000

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

David Chan avatar image
0 Likes"
David Chan answered Sunlicense commented

@Sunlicense That is the normal behaviour when the flowitem enter into the entrytransfer. If you do not want that to happen, instead of the place into entrytransfer, place the flowitem into a queue that connect before the entrytransfer.


David

· 3
5 |100000

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

Sunlicense avatar image Sunlicense commented ·

The problem still exists after I place the flowitem into a queue that connect before the entrytransfer.

But there will be no problem if I use a 2D button of GUI instead of the 3D button.

So I am wondering this is a bug or not.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Sunlicense commented ·

@Sunlicense

You can adjust the position of the inserted item directly after you create it in your code with the "setLocation" command. That way you can have it appear in the correct position at the start of the conveyor.

1631607973147.png

As David said, I don't think it's a bug. Items entering from the source will also appear in that position upon entering the entry transfer (You can see this if you stop the model in the Entry trigger of the conveyor). Though I don't know why it's different when using a 2D button.

item-in-the-wrong-position_fix.fsm

0 Likes 0 ·
Sunlicense avatar image Sunlicense Felix Möhlmann commented ·

The code works perfect.

Thank you so much.

0 Likes 0 ·
David Chan avatar image
0 Likes"
David Chan answered Sunlicense commented

@Sunlicense I have enclosed a sample model which I don't see such problem.

Create Item GUI.fsm


create-item-gui.fsm (38.8 KiB)
· 3
5 |100000

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

Sunlicense avatar image Sunlicense commented ·

Thank you so much for you reply.

But the problem is still there in your sample model.

You can see the problem when you run the model first and then click the "button".

It's not a big problem, but still annoying when I show this to my client, especially I need to click the button often.

Minimize the spatialsx, spatialsy, spatialsz of the entrytransfer can let the problem not so obvious.

img-0407.jpg

0 Likes 0 ·
img-0407.jpg (281.7 KiB)
Ryan Clark avatar image Ryan Clark Sunlicense commented ·

Hi @Sunlicense,

This may not help with this specific problem, but to help FlexSim run more smoothly and fix any potential bugs, you can download the most recent version of FlexSim for your license (21.1.5).

0 Likes 0 ·
Sunlicense avatar image Sunlicense Ryan Clark commented ·

Thank you so much for you reminder.

0 Likes 0 ·