Color Palette Bulk read

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
5 posts • Page 1 of 1
vbalan007
Posts: 20
Joined: Fri Jul 28, 2017 7:11 am

Color Palette Bulk read

Post by vbalan007 »

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

User avatar
kilianvp
Posts: 443
Joined: Fri Jan 16, 2015 10:29 am

Re: Color Palette Bulk read

Post by kilianvp »

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()

vbalan007
Posts: 20
Joined: Fri Jul 28, 2017 7:11 am

Re: Color Palette Bulk read

Post by vbalan007 »

Thanks a lot!

User avatar
leoknipp
Posts: 2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Color Palette Bulk read

Post by leoknipp »

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

vbalan007
Posts: 20
Joined: Fri Jul 28, 2017 7:11 am

Re: Color Palette Bulk read

Post by vbalan007 »

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.

Post Reply
5 posts • Page 1 of 1