Book a Demo

Author Topic: Add style name to Style  (Read 6836 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Add style name to Style
« on: February 24, 2017, 10:49:22 am »
We're starting to be more serious about the use of styles for our diagrams.  It would be very useful if we could have the actual style name (not just the resultant rendering attributes) in the ObjectStyle field of the DiagramObject or Style field of the DiagramLink.

In fact, true support for styles would abstract the rendering attributes from the DiagramObject or DiagramLink and use the current values specified in the style definition.   This would allow easy changes to rendering (in the way of a theme) and, indeed, could be added to the "Theme and Appearance Options".

Heaven forbid, they could also be used to automagically tie legends to styles!

Thoughts?

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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Add style name to Style
« Reply #1 on: February 24, 2017, 08:53:16 pm »
Over year's we've learned to draw the EA-way. And it never has really changed. This likely reflects the mind of the persons responsible for developing the diagramming part. And guessing from this constant "style" I guess we won't see any change unless there's a tragic accident (which hopefully for those persons will never happen).

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Add style name to Style
« Reply #2 on: March 06, 2017, 09:33:51 am »
If I understand you correctly, what you've been asking for is something that I've wanted to do for years.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Add style name to Style
« Reply #3 on: March 06, 2017, 10:54:45 am »
If I understand you correctly, what you've been asking for is something that I've wanted to do for years.
Who's the "you"?  Me or qwerty?  Or both? :)

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

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Add style name to Style
« Reply #4 on: March 06, 2017, 12:00:34 pm »
Since the action that qwerty mainly talks about is the demise of a Sparxian or two, I would hope that Simon is only yearning for the feature that you (Paolo) mention.
...
...
But then again...
Best Regards, Roy

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Add style name to Style
« Reply #5 on: March 06, 2017, 05:25:11 pm »
[SNIP]
...
But then again...
You might well think that.  I couldn't possibly say that...   ;D

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

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Add style name to Style
« Reply #6 on: March 06, 2017, 05:29:41 pm »
To be clear...

I was describing that I have wanted to see named styles (sets of display options) being defined at a model level, and the diagram objects referencing these instead of copying the settings to themselves.

In my dreams I'd like to assign one of these styles to diagrams, elements and packages too and have inheritance from up a chain for unspecified values, and be able to directly override individual elements of the style without complete override. Then I dream about similar ways of handling other sets of options (eg. code generation) in the same way. 

I don't think something like that would require a tragic accident, and I'm not saying that I don't sometimes want tragic accidents...

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Add style name to Style
« Reply #7 on: March 06, 2017, 05:46:14 pm »
 :)

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Add style name to Style
« Reply #8 on: March 07, 2017, 01:39:41 pm »
Since the action that qwerty mainly talks about is the demise of a Sparxian or two, I would hope that Simon is only yearning for the feature that you (Paolo) mention.

He said tragic accident, which could be being served a VB when you'd asked for a beer :-)