Hi ,
Is there any way to read all the contents of the colorDB via script?
For example, colorDB1 has 10 colors , I would like to read it all and store it in a dyn_string.
Thanks,
Bala
Color Palette Bulk read
Search
Re: Color Palette Bulk read
You can read the file
you can see a example in
WinCC_OA\3.16\MobileAppServer_3.16\scripts\libs\mobileApp.ctl
in mobileApp_ColorDB_loadDBs()
you can see a example in
WinCC_OA\3.16\MobileAppServer_3.16\scripts\libs\mobileApp.ctl
in mobileApp_ColorDB_loadDBs()
Re: Color Palette Bulk read
If you want to get the colors defined in your project you can use the CTRL function getColorNames();
Also the function colorGet() and colorToRgb() are available to get the color information.
Best Regards
Leopold Knipp
Senior Support Specialist
Also the function colorGet() and colorToRgb() are available to get the color information.
Best Regards
Leopold Knipp
Senior Support Specialist
Re: Color Palette Bulk read
Thank you! will use both the approaches for reading colors. for grouping and reading colors , based on colordbname, will use the earlier approach. for reading a individual color or color pattern's based on individual colorname, will use the latter.