Book a Demo

Author Topic: Default Element color fill in EA 14  (Read 8853 times)

Gomathi

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Default Element color fill in EA 14
« on: December 27, 2018, 10:26:54 pm »
When I create a flow chart element, it is in blue color by default.
How do I change it to the actual default element fill color?
I have disabled the 'Use Element Group Style' option in Preferences > Diagram > Appearance.
Is there any other option I have to give to change the default blue color fill?
Thanks in advance.

Arshad

  • EA User
  • **
  • Posts: 290
  • Karma: +21/-1
    • View Profile
Re: Default Element color fill in EA 14
« Reply #1 on: December 27, 2018, 10:42:03 pm »
Hi Gomathi

Blue colour seems to be the default colour for flow chart elements . If you need to change the colour

From Ribbon  -> Layout -> Style ( change fill colour ) . ( Changes will affect in Diagram Level )
From Diagram -> Select the object -> press f4 -> change the fill colour. ( Changes will affect in Element Level )

EA usually store's background colour in Element Level and Diagram level .


HTH
Arshad

Gomathi

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: Default Element color fill in EA 14
« Reply #2 on: December 28, 2018, 12:13:06 am »
Hi Arshad,

I changed both the settings as mentioned.
But, when I create a new element, again it is created with the blue background.

Arshad

  • EA User
  • **
  • Posts: 290
  • Karma: +21/-1
    • View Profile
Re: Default Element color fill in EA 14
« Reply #3 on: December 28, 2018, 03:42:00 am »
But, when I create a new element, again it is created with the blue background.

Yes because its the default color for Flowchart.

If you want to change to custom colors for FC elements you need to create a template package\Custom MDG and then should do the import.But in your case Template Package should do the trick .

- Using Template Package you can alter the default appearance of an element easily.

For creating Template Package refer https://sparxsystems.com/enterprise_architect_user_guide/14.0/modeling_tools/using_element_templates.html


HTH
Arshad
« Last Edit: December 28, 2018, 03:55:59 am by Arshad »

Gomathi

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: Default Element color fill in EA 14
« Reply #4 on: December 28, 2018, 04:27:39 am »
Hi Arshad,

Thanks a lot! I'm able to set the color and even default size of an element using template package. :D

Arshad

  • EA User
  • **
  • Posts: 290
  • Karma: +21/-1
    • View Profile
Re: Default Element color fill in EA 14
« Reply #5 on: December 28, 2018, 03:15:51 pm »
Glad it helped :)

Gomathi

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: Default Element color fill in EA 14
« Reply #6 on: December 29, 2018, 12:22:12 am »
Hi Arshad,

If I'm importing elements, then this template is not applied.
Is there any option I have to enable?

Arshad

  • EA User
  • **
  • Posts: 290
  • Karma: +21/-1
    • View Profile
Re: Default Element color fill in EA 14
« Reply #7 on: December 29, 2018, 04:38:27 pm »
Which import are you using now ?

Gomathi

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: Default Element color fill in EA 14
« Reply #8 on: December 29, 2018, 10:16:00 pm »
Hi Arshad,

I'm using MDG Excel import plug-in to import the elements.

Arshad

  • EA User
  • **
  • Posts: 290
  • Karma: +21/-1
    • View Profile
Re: Default Element color fill in EA 14
« Reply #9 on: December 30, 2018, 04:06:59 am »
Hi Gomathi

In that case you can achieve setting the default colour for all the created objects by a simple post script .

Code: [Select]
case otPackage :
{
// Code for when a package is selected
var thePackage as EA.Package;
thePackage = Repository.GetTreeSelectedObject();

for(var i = 0;i<thePackage.Elements.Count;i++)
{
var ele as EA.Element;
ele = thePackage.Elements.GetAt(i);
ele.SetAppearance(1,0,3937500);
ele.Update();

}
break;
}

For more details on SetAppearance API call refer here.
For more details on SetAppearance property refer here

HTH
Arshad
« Last Edit: December 30, 2018, 05:25:30 am by Arshad »

Gomathi

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: Default Element color fill in EA 14
« Reply #10 on: January 14, 2019, 08:58:46 pm »
Hi Arshad,

Thanks! I just tried it today and it works.
Thanks for sharing the links for reference. I was able to set my preferred color.

Arshad

  • EA User
  • **
  • Posts: 290
  • Karma: +21/-1
    • View Profile
Re: Default Element color fill in EA 14
« Reply #11 on: January 14, 2019, 09:17:54 pm »
Hi Arshad,

Thanks! I just tried it today and it works.
Thanks for sharing the links for reference. I was able to set my preferred color.


Glad it helped :D  :D :D