Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Woody

Pages: [1]
1
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?

2
Pardon my ignorance, but is there anyway to loop through the list of elements in a diagram?  We are validating our model with a VB script and want to make sure each class we create is in our Comprehensive Model Diagram and in the Sub-diagrams we have also created.

thanks

Pages: [1]