Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
[ FlexSim 17.2.2 ]
Hi,
Is it possible to add a tracked variable label to an object using code?
Regards,
Arun KR
Solved! Go to Solution.
[ FlexSim 17.2.2 ]
Hi,
Is it possible to add a tracked variable label to an object using code?
Regards,
Arun KR
Solved! Go to Solution.
Hi,
I managed to do it. The code is given below.
Object Queue = model().find("Queue1");//Object in which the tracked variable is made treenode tv = labels(Queue).subnodes.add(); tv.name = "Model"; TrackedVariable.init(tv, STAT_TYPE_LEVEL, 0);
Regards,
Arun KR
treenode tv = Queue.labels.assert("Model");// alternative dot syntax