Source FlexScript Code

Source FlexScript Code

georgia_m2
Not applicable
102 Views
6 Replies
Message 1 of 7

Source FlexScript Code

georgia_m2
Not applicable

new-ideas-cv.fsm

Hey I'm pretty new to FlexSim and I have a question.

How can i make the source create items from an excel file, constantly and randomly?

Thank you,

Georgia

0 Likes
Accepted solutions (1)
103 Views
6 Replies
Replies (6)
Message 2 of 7

sebastian_hemmannE3JAU
Collaborator
Collaborator

Could you please explain more exactly what you are looking for and why?

0 Likes
Message 3 of 7

mischa_spelt
Advisor
Advisor
Accepted solution

Have you considered using the Arrival Table or Arrival Sequence options?

0 Likes
Message 4 of 7

mischa_spelt
Advisor
Advisor

Also, instead of having 6 "Send to item" actions on each decision point, you can replace them with a single condition of "item.Type <= 6" on the first one, "item.Type <= 12" on the second, etc.

0 Likes
Message 5 of 7

georgia_m2
Not applicable

thank you i will try that !

0 Likes
Message 6 of 7

georgia_m2
Not applicable

worked 🙂 Thank you!!

is it possible to write an expression such as item.type >5 && item.type >2 for example ?

0 Likes
Message 7 of 7

mischa_spelt
Advisor
Advisor

Sure @georgia M2, you can use the operators >, >=, < and <= for comparisons, and && and || for and and or. However, in this case that is not necessary because all items with types less then 6 will get sent off by the first decision point, so items arriving at the decision point are guaranteed to have item type at least 7. By the way, note that the the item type label is called item.Type (with a capital)