I have a warehousing model where I am trying to track the available stock of all parts at a particular location. At the start of the simulation I am creating each part with a tracked variable label called "availableStock" that gets updated upon consumption and replenishment. I need to create a chart that lets me look at the availableStock for all the parts at a particular location.
Ideally I could easily do this by pinning this variable to a dashboard, run the model and see the data. However, since the parts and their tracked variables are created after running the model, the dashboard chart will not be able to plot anything. As explained here as well, reference: How to plot Tracked Variable label? - FlexSim Community
In such a scenario, is it possible to create the dashboard chart via custom code or flexscript after the part is created? This would probably allow me to add all parts to one chart via process flow custom code which is what I need. Attaching a sample of how my larger model works.