It works for me also just fine. Maybe check some steps.
1.
Remove the ControlManger for "icons.ctl". It is not needed.
2.
The options for the Para User Interface should be "-m para -s icons.ctl"; not! "WCCOAui -m para -s icons.ctl"
3.
In your script you had used the system name "System1". Is your system name really "System1"?
If not then please change it in your script or remove the system name completely.
4.
Your icon file is named "analog1.png"?
Does this file exist in the following folder (assuming your project is located there)?
"C:\WinCC_OA_Proj\Userdefinedicon\pictures\analog1.png"
5.
Your script file is located here (assuming your project is located there)?
"C:\WinCC_OA_Proj\Userdefinedicon.17\scripts\icons.ctl"
6.
Try the following script. It uses an icon from the installation folder. You do not need to copy anything. This should always work.
Code: Select all
main()
{
mapping map;
map["[ANALOG1]"] = "apply_16.png";
dpTreeSetIcons(map);
}