Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: paradogma on February 21, 2005, 04:31:12 am
-
In the automation interface there is a method ".setAppearance()" for the object "element".
The method expects the parameters "scope", "item", "value". All of them are of type "long".
I didn't find any further documentation on that.
I like to change e.g. the Font-Size in an element of type "Note".
Or maybe the Back-Color.
The GUI offers a bunch of settings for the Appearance of a Diagram-Element.
How can I set these properties programmatically?
Does anybody know, what value (long) to set for what item (as well long)?
Thanks
-
From the help file...
Sets the visual appearance of Element.
Scope: Scope of appearance set to modify
0 – Local (Diagram-local appearance)
1 – Base (Default appearance across entire model)
Item: Appearance item to modify
0 – Background color
1 – Font Color
2 – Border Color
3 – Border Width
Value: Value to set appearance to.
The colour values are RGB values: red is FF, green is FF00, blue is FF0000 (all hex). Hope that helps.
-
oooooooops,
I apologize. Now I found it in the Help, too.
Did I miss any information on how too modify Font (Size, Color, Bold ...) as well?
Thank you for your effort
-
Did I miss any information on how too modify Font (Size, Color, Bold ...) as well?
Sorry, it's not possible at the moment.