question

Murphy avatar image
0 Likes"
Murphy asked Murphy commented

Item rotate in conveyor

1715938106072.png

why Item could not rotate in conveyor when I set like graph. If use DP could be make item rotate, but why could't be finish in conveyor. Thanks for you answer.

FlexSim 24.0.0
rotate item
1715938106072.png (951.1 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 Murphy commented

An item cannot rotate by item object properties. An item is on a conveyor a conveyorItem. Conveyors belong to API Class conveyors. Items are visually parts of this Conveyor Class, if they are moved by conveyors. Conveyors are not Fixed Resources. Their inheritance is a module in FlexSim.

If you want to rotate conveyorItems do this from triggers of your conveyor system or by API class Conveyor.Item.

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

Murphy avatar image Murphy commented ·

1716173580991.png

I coding like that, but it's seems can't work, it's that correct? or have some problem in here, thanks you answer!

0 Likes 0 ·
1716173580991.png (48.5 KiB)
Joerg Vogel avatar image Joerg Vogel Murphy commented ·

@Murphy,

Your last attempt is exchanging a method by a command. Doing it correctly is an approach of reading, analyzing and not of try and error.

https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Conveyor/Conveyor.Item.html#Method-turn

If you cannot adjust the source code of a picklist of a photoeye trigger to rotate an item, then there is nothing else you can do.

If it is just a pure visual reason, you want to rotate the shape of an item, then you can still rotate offset values of the shape.
https://docs.flexsim.com/en/24.0/Using3DObjects/CreatingCustomObjectsAnimations/CreatingCustomObjects/CreatingCustomObjects.html#troubleshooting

or an attribute if it accessible already in the tree.

offsetrz > https://answers.flexsim.com/comments/149972/view.html

0 Likes 0 ·
Murphy avatar image Murphy Joerg Vogel commented ·
Thanks you share!
0 Likes 0 ·