question

KateWoo avatar image
0 Likes"
KateWoo asked KateWoo commented

Labels in properties are not working but I cannot locate the bug

I made a model with variable labels on processor 1~12. They should be updated with flow items' labels but the value is always 0.

I tried several ways to update the label but all in vain.

Would you please help me locate the bug?

The 1st solution I have ever tried:
1704636248411.png

The 2nd solution I have ever tried:

1704636187515.png

1704636076007.png

Kate v.9 portbycase.fsm

FlexSim 24.0.0
labelnamegetitemtypelabel setting
1704636076007.png (11.9 KiB)
1704636187515.png (45.3 KiB)
1704636248411.png (38.2 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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered KateWoo commented

The function getitemtype() is deprecated as the documentation says - and it's not used to get label values anyhow.

You should access your label value using this expression:

item.ItemType

since you've called your label 'ItemType'.

(I'd also recommend increasing the clipboard height so you can see and interact with the items on the processors.)

· 1
5 |100000

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

KateWoo avatar image KateWoo commented ·
Hi Jason,

Thank you for the prompt feedback and it works!

0 Likes 0 ·