question

Miguel B3 avatar image
0 Likes"
Miguel B3 asked Joerg Vogel commented

Sorting a Rack according to Item Type

Hi everyone,

This is my problem. I have a source producing two types of items, 1 and 2, which will be storaged into a rack. Items type 1 must be in Bay 1 and Level 3 while type 2 in Bay 2 Level 5. I defined a Table (Place) with Bay in Column 1 and Level in Column 2, and the expression gettablenum("Place",getitemtype(item),1) for Bay and gettablenum("Place",getitemtype(item),2) for Level, however is not working. See model attached.rack-practice.fsm

I would like to use picklists rather than coding or Process Flow.

Thank you very much for your help.

FlexSim 19.0.0
racktablesrack sorting
rack-practice.fsm (20.5 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
1 Like"
Joerg Vogel answered Joerg Vogel commented

Maybe you have a tutorial of an old FlexSim version or you learned FlexSim on a past Version. The attribute itemtype changed from a separate attribute to a simple label.

gettablenum("Place",getitemtype(item),1) // previous FlexSim 17
gettablenum("Place",item.Type,1) // a mixture of old commands and new class types
Table("Place")[item.Type][1] // new class type reference for Version 19
· 4
5 |100000

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

Miguel B3 avatar image Miguel B3 commented ·

Thank you Jörg, that worked. I'm really new in Flexsim so I have to be aware of the different versions.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Miguel B3 commented ·

Please look into the FlexScript Class Reference

0 Likes 0 ·
max avatar image max commented ·

@Joerg Vogel

Hi Joerg what if we want to define specific bay depending on item type I have written a code in place in bay but it is giving error

rack asrs_autosave.fsm

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel max commented ·

@Priyanka G2, since FlexSim version 19.0 there have been so many progress that my answer had no relevance anymore for actual FlexSim versions. FlexSim 19.0 is not in support anymore. Please be so nice and ask a new question and create a thread. This is a recommended approach for already accepted answers at this forum site. You find useful hints in best practices for using this answers site on each site of this form.

https://answers.flexsim.com/articles/22192/best-practices-for-using-this-answers-site.html

thank you for using FlexSim!
Joerg

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.