Author Topic: Shape scripts for non-stereotyped items  (Read 4213 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Shape scripts for non-stereotyped items
« on: September 02, 2008, 11:51:42 am »
It has been often mentioned/requested to be able to apply shape scripts to non-stereotyped elements (both edges and vertexes).  One simple solution would be to enable the <none> (extrinsic) stereotype.  If an element has no stereotype applied and the <none> entry exists in the stereotype definitions for that type of element, then EA could apply the rendering (meta-file or shape script) as specified in the <none> definition.

I'm sure I'm not the only person to whom this thought has occurred, but I haven't seen it voiced before.

What do others think?  If there's agreement I'll submit a suggestion.

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

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Shape scripts for non-stereotyped items
« Reply #1 on: September 02, 2008, 12:44:46 pm »
[IMHO] Submit the suggestion.

This becomes a very powerful possibility, when you consider the possibility of querying a tagged value. If the tag exists, or if it is set to a specific value (EA allows you to use either treatment) then the shape script can be triggered. Otherwise you could just branch to DrawNativeShape. This would effectively allow shape scripts to be triggered by tagged values instead of stereotypes.

Nifty!
No, you can't have it!

Thomas Mercer-Hursh

  • EA User
  • **
  • Posts: 386
  • Karma: +0/-0
  • Computing Integrity
    • View Profile
Re: Shape scripts for non-stereotyped items
« Reply #2 on: September 03, 2008, 01:51:13 am »
Go for it!  If added to the other shape script things we have asked for this could add a lot of power.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Shape scripts for non-stereotyped items
« Reply #3 on: September 03, 2008, 06:23:47 am »
If we got (some of) the other things we have asked for there would already be lots of added power.

Still, we should keep the ideas coming.
No, you can't have it!

Dave_Bullet

  • EA User
  • **
  • Posts: 295
  • Karma: +0/-0
    • View Profile
Re: Shape scripts for non-stereotyped items
« Reply #4 on: September 03, 2008, 07:49:01 am »
absolute power completes absolutely!  ;D

Would you have one default shapescript across the model (for any element without a stereotype) or by object type? (ie. by class, node, package, component etc...)

If by object type - then we should also request / ask for shapescript "modules" - so common code can be shared across scripts.

Another issue is the diagram.type property in shapescript only checks the base type (ie. logical, deployment etc...) - not the custom diagram type you might create (ie. SolutionArchitectDeployment, InfrastructureArchitectDeployment etc...).  This would be much more useful for having per role rendering via shapescript.

David.
« Last Edit: September 03, 2008, 07:52:40 am by Dave_Bullet »
"I know I'm close to a good design, but it's like the balloon animals, squeeze in one spot and the problem moves down the line"

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Shape scripts for non-stereotyped items
« Reply #5 on: September 03, 2008, 08:36:09 am »
All good points and questions Dave,

These serve to open up the subject. They also point out, however indirectly, what might be done by enhancing shape scripts.
No, you can't have it!