1
Automation Interface, Add-Ins and Tools / Where is backfill color stored in EA?
« on: June 12, 2010, 08:06:24 am »
I have been asked to programmatically check our diagrams in an EA model to ensure all classes from one of six sub-packages have the same color in all diagrams in which they appear. I am stuck on figuring out how the background fill color is set. I am using the Repository.SQLQuery method to query EA in the vbscript code.
From what I can figure out: t_diagramobject.objectstyle (table.fieldname) has a string value where "BCol=" seems to set the background color if the t_object.backcolor is not set.
I have found t_object.backcolor can be -1 and t_diagramobject.objectstyle can be BCol=-1 at the same time. I did not find anything in t_diagram.StyleEx that looks like a color code; hex or decimal.
So where is the color being inherited from?
Is there another programmatic way to get at the color of an diagram object?
From what I can figure out: t_diagramobject.objectstyle (table.fieldname) has a string value where "BCol=" seems to set the background color if the t_object.backcolor is not set.
I have found t_object.backcolor can be -1 and t_diagramobject.objectstyle can be BCol=-1 at the same time. I did not find anything in t_diagram.StyleEx that looks like a color code; hex or decimal.
So where is the color being inherited from?
Is there another programmatic way to get at the color of an diagram object?