Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: paradogma on February 21, 2005, 04:31:12 am

Title: .setAppearance(scope, item, value)  how ???
Post 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
Title: Re: .setAppearance(scope, item, value)  how ?
Post by: KP on February 21, 2005, 02:16:17 pm
From the help file...
Quote
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.
Title: Re: .setAppearance(scope, item, value)  how ?
Post by: paradogma on February 21, 2005, 09:56:30 pm
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
Title: Re: .setAppearance(scope, item, value)  how ?
Post by: KP on February 22, 2005, 07:41:14 pm
Quote
Did I miss any information on how too modify Font (Size, Color, Bold ...) as well?

Sorry, it's not possible at the moment.