Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Mike Hatch on May 06, 2015, 05:53:48 am

Title: Detecting theme colors programmatically?
Post by: Mike Hatch on May 06, 2015, 05:53:48 am
Is there a source for the theme colors that is accessible from the scripting object model?  DiagramObject.Style and DiagramLink.Style include color values if set by the user, but contain "-1" if set to the default, which is dependent on the color theme selected under View -> Visual Styles, Visual Appearance, Diagram.  

Components, for example, have a pink default color in v11 and 12.  Where could I figure out what this color is set to from a script?
Title: Re: Detecting theme colors programmatically?
Post by: qwerty on May 06, 2015, 06:50:51 am
I guess they are stored somewhere in the registry. You can find that by exporting the EA registry key, modifying the color and compare to the changed export.

q.