Determine flowtime by referring to a Global Table

Determine flowtime by referring to a Global Table

maryamh11
Collaborator Collaborator
59 Views
2 Replies
Message 1 of 3

Determine flowtime by referring to a Global Table

maryamh11
Collaborator
Collaborator

[ FlexSim 22.1.2 ]

Hi,

How I can refer a flowtime in Create patient to a global table by defining the gender of each person in a separate column?

I created a Global Macro to refer to the column and seems that doesn't work.

Also, I do not know in the "Row" by Looking up from a Global Table, should I refer to the token.Row or token. Name (Name is another label that I created for each person).

Attached is the simple model and the error I'm getting when run the code.

Thanks

sample_model_office_1.fsm

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

kavika_faleumu
Autodesk
Autodesk
Accepted solution

Hey @Maryam H2, it seems the first person in the table is created correctly at 8AM, but the second person at 8:30AM throws an error. The error occurs at the Create Patient activity when referencing your People Parameters global table. When clicking on the 1st cell under Gender, it shows a little script icon next to it:

1656538807559.png

However, the other cells under gender did not. I realized that the 1st cell had a different data type than the other cells - it was FlexScript Data while the rest were not. After changing all the cells to have the FlexScript Data type, the program ran smoothly.

To change the data type of a cell, highlight the cells you want to change, right click, hover over Assign Data, then select the type you want.

1656538942579.png

Hope this helps!

0 Likes
Message 3 of 3

maryamh11
Collaborator
Collaborator
Ahh, you're right! Thanks @Kavika F