question

Hemanth Sai Kumar avatar image
0 Likes"
Hemanth Sai Kumar asked Felix Möhlmann answered

Custom State Gantt Chart

Hi Flex Simmers,

I have a use case where I am trying to add part id label to a state Gantt chart for each state, I did call it on every event trigger, but I am finding some difficulty in getting the excepted output.
Below I am attaching my example model can someone help in resolving issue. Thanks in advance for you time and interest.

Custom Gantt chart.fsm

FlexSim 24.0.2
state gantt
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

You use "data.item..." to try and assign a column value. But "item" is not part of the event parameters. To use it you would have to define a custom label with that name on the events tab.

What you do have access to is the object the event belongs to through current. So you can use that to check if there is an item in the object and if so, return its id value.

custom-gantt-chart_1.fsm


5 |100000

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