How to make random size&shape in source ? sometimes box, sphere, cylinder, etc

How to make random size&shape in source ? sometimes box, sphere, cylinder, etc

bangjundiflexsim
Not applicable
403 Views
2 Replies
Message 1 of 3

How to make random size&shape in source ? sometimes box, sphere, cylinder, etc

bangjundiflexsim
Not applicable

[ FlexSim 22.2.0 ]

someone help me please

1694712750160.png

How to make the output size & shape in sorce sometimes box, sphere, cylinder, etc?.

and then all items will sorted by operators base on colour. Is it possible for FlexSim to represent an operator performing sorting?


please help me

Conveyor Sorting Simulation.fsm

0 Likes
Accepted solutions (1)
404 Views
2 Replies
Replies (2)
Message 2 of 3

Jeanette_Fullmer
Community Manager
Community Manager
Accepted solution

Hello @jundi,

You can set the object shape using

setobjectshapeindex(item, shapeIndex);

You would use a distribution to set the shapeIndex.

You can also use a distributions to define the x, y, and z dimensions and set it with

setsize(item, x, y, z);

conveyor-sorting-simulation_2.fsm

0 Likes
Message 3 of 3

Jeanette_Fullmer
Community Manager
Community Manager

Hi @jundi, was Jeanette F's answer helpful? If so, please click the "Accept" button at the bottom of their answer. 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 comment back to reopen your question.

0 Likes