question

Ruben Mariduena avatar image
0 Likes"
Ruben Mariduena asked Ruben Mariduena commented

How can I correctly load flowitems onto a created TE flowitems in the model animation?

I am creating TE flowitems at model reset and at specific sources which then in part load flowitems and transport them to their corresponding destinations. Please see picture attached, for some reason the flowitems are not correctly being loaded in the animation onto the TE but instead they float in front of it through out the whole animation. How can I show the flowitems in the correct position (on the TE)? I achieved this by adding a new TE flowitem onto the flowitem bin and referencing this object on the creation of all the other TE in the model.

FlexSim 16.2.0
task executer flowitem
· 2
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

@Ruben Mariduena maybe you can attach the picture?

0 Likes 0 ·
Jeff Nordgren avatar image Jeff Nordgren commented ·

@Ruben Mariduena

Better yet, can you attach your model or a sample model?

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Ruben Mariduena commented

If you highlight the taskexecuter and you compare the transport location of the original taskexecuter, do you see still a difference in the location in relation to the highlighting frame.

If there isn't a difference then you can set the location of the item in relation to the taskexecuter by the command setloc(obj.,x-value,y-value,z-value). If there are values that you haven't got to adjust you can get the current value by the command xloc(obj.) if it is the x value, yloc(obj.) or zloc(obj.)

obj. is the pointer or node to the object. In your source code it should be item.

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

Ruben Mariduena avatar image Ruben Mariduena commented ·

@Jörg Vogel @Jeff Nordgren

My apologies for not attaching the picture. For the interest of this question I have attached the picture in this reply. I used the set location command and it worked perfectly. Thank you

floating-items-on-te.png

0 Likes 0 ·

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.