Book a Demo

Author Topic: Coloured background for Diagram Reference  (Read 2432 times)

Stobie

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Coloured background for Diagram Reference
« on: October 05, 2009, 03:01:36 pm »
Hi,

Just starting out on the EA journey with a 'classic' business capability model, and I need to have colours for the boxes that represent the different capabilities.  
In the model..
Each capability is a package
Each capability level (4 levels) is a different colour
I've tried this with coloured hyperlinks (for navigation) and borders for the lable) whcih is a bit clunky and time-consuming.  
Is there a way to get diagram references to have coloured backgrounds, and come out as a coluored box?  Or do you have to just live with just the text tab changing colouor and the rest of the box staying clear.  Is there a really good sample anywhere?

Thanks,  Chris

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Coloured background for Diagram Reference
« Reply #1 on: October 05, 2009, 05:44:49 pm »
Hi Chris,

I presume from your comments that you've tried stereotyping the reference and noted that only the caption changes to the fill color you've selected.

If that's so, then you may want to try using shape scripts.  You can create a rectangle and put the name inside it...

Code: [Select]
shape main
{
      setfillcolor(0,255,0);
      rectangle(0,0,100,100);
      addsubshape("name", 30,50);
      shape name
      {
            print("#name#");
      }
}

Will get you started...

HTH,
Paolo
« Last Edit: October 05, 2009, 05:45:31 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Stobie

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Coloured background for Diagram Reference
« Reply #2 on: October 06, 2009, 01:57:51 pm »
Thnks Paolo,

I think I might just stick to no-scripted stuff for now.  One of our guys has gotten into scripts, I'll pester him when next I see him.  Now I see why the Viso MDG tool made stacks of rectangles and not much else.

Cheers Chris

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Coloured background for Diagram Reference
« Reply #3 on: October 06, 2009, 02:26:20 pm »
Quote
Thnks Paolo,

I think I might just stick to no-scripted stuff for now.
[size=18]...[/size]
Cheers Chris
Hi Chris,

you're wise not to go near shape scripts - they're addictive!   ;)

Unfortunately, I wasn't so circumspect and I now create them at the "drop of a hat".   I'm just waiting for my dealer (Sparx) to slip me v2 to get me even more "hooked".

You have been warned!   ;D

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!