Change 3D Shape

Change 3D Shape

mia_l
Not applicable
20 Views
5 Replies
Message 1 of 6

Change 3D Shape

mia_l
Not applicable

[ FlexSim 19.2.4 ]

I am using 2 queues attached to a combiner and one of them changes 3D shape on entry. I noticed in the trigger tab that the getshapeindex command runs slow if called frequently. How can I change the 3D shape in a global variable instead?

0 Likes
Accepted solutions (1)
21 Views
5 Replies
Replies (5)
Message 2 of 6

tanner_p
Not applicable

The 3D shape change is going to run at the same speed whether you call it in the queue trigger or Global Variable or anywhere. Perhaps you could post a model that illustrates the problem you're having so we can suggest a solution?

0 Likes
Message 3 of 6

mia_l
Not applicable
0 Likes
Message 4 of 6

tanner_p
Not applicable

@Mia L,

So sorry, but the link didn't work. Would you mind trying it again? If that doesn't work, I can have you email it to me.

0 Likes
Message 5 of 6

mia_l
Not applicable

@tanner.p

cylinder-queue.fsm

Hopefully this one works!

0 Likes
Message 6 of 6

tanner_p
Not applicable
Accepted solution

@Mia L,

Sorry, I didn't understand your initial question. The getshapeindex() function is called in the On Entry trigger (line 10). All it's suggesting is that you use a Global Variable (i.e. hard code) for the number so you don't have to call that function. In a model this size, you're probably okay not to worry about it, but if you had thousands and thousands of items, you might notice it slowing the model down.

I updated your model by adding a Global Variable called "ShapeIndex" with a value of 2 (cylinder is in second position in FlowItem Bin) that eliminates the need to call the aforementioned function. You can test it by changing the ShapeIndex Global Variable to 3 or another number. Hope this helps.

30579-global-variable.png

cylinder-queue_1.fsm

0 Likes