- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I have created a state table and a State Bar. Since there is only one state table, this state table is automatically shown on the state profile of this State Bar. However, when I start simulation, nothing shows on the State Bar. But after I re-select the state table some times, then it works. Here is my code, can anyone solve this problem?
Object utilizationview = maintree().find("project/exec/globals/ChartTemplateDefinitions/State/StateBar");
Object chart_utilization = function_s(dashview, "createGraphWindow", utilizationview, 1);
Group group_utilization = getvarnode(chart_utilization, "replacements").subnodes["Objects"].value;
for(int i = 1; i <= utilization_targets.length; i++)
{
Object q = Model.find(utilization_targets[i]);
group_utilization.addMember(q);
}
treenode statetable = Tools.create("StateTable","Default");
Solved! Go to Solution.