Book a Demo

Author Topic: drawnativeshape() - extension  (Read 8607 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
drawnativeshape() - extension
« on: September 15, 2009, 03:03:38 pm »
I'm currently working at documenting diagrams with "help".  To do this I have a hyperlink to other diagrams that have help "notes" on them.

It is very useful to have the help hyperlink have the same shape as the item I'm supplying help on.

In addition due to other aspects of EAUI, it is often necessary to have one type of element simulate another.

drawnativeshape() draws the native shape of the current element.  With hyperlinks that doesn't make much sense...

I'm proposing that drawnativeshape() be extended to include:
drawnativeshape("<element type>") to allow it to draw the native shape of another element type.

Thus, for example, if I'm hyperlinking on behalf of an Activity, I'd use drawnativeshape("Activity")  and EA would draw the native Activity shape.  So much easier and consistent (that word again) than having to simulate the Activity shape within a shapescript - with no real consistency in drawing between different shapescripts.

Thoughts? Votes?
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: drawnativeshape() - extension
« Reply #1 on: September 15, 2009, 08:33:19 pm »
Absolutely!

I cannot count the number of times this could have saved some real pain. For me, some of these instances resulted in abandoning the goal of using a custom shape.
No, you can't have it!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: drawnativeshape() - extension
« Reply #2 on: April 21, 2010, 04:28:33 am »
I've now been playing with MDG Technologies and it's become increasingly apparent that in order to correctly render some custom shapes, the current proposal needs to be extended to include stereotypes:

drawnativeshape("<element type>", "<stereotype>");

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

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: drawnativeshape() - extension
« Reply #3 on: April 21, 2010, 06:23:22 pm »
I would vote for the "full" extension, including the (optional) stereotype parameter.

g.

tekbe

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: drawnativeshape() - extension
« Reply #4 on: May 15, 2010, 04:05:43 am »
I agree. In the meantime: Is there a central resource to share and download ea shape scripts (including the native UML shapes)?

regards

tekbe

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: drawnativeshape() - extension
« Reply #5 on: May 15, 2010, 04:23:47 am »
Also it would be great to use a vectorgrafic format with transparency in ea (like svg). This way it would be easy to create grafics with your favorite image drawing tool and mix them into your shape scripts (without transparency this just doesn't look good).

Thomas Mercer-Hursh

  • EA User
  • **
  • Posts: 386
  • Karma: +0/-0
  • Computing Integrity
    • View Profile
Re: drawnativeshape() - extension
« Reply #6 on: May 18, 2010, 04:49:16 am »
Got my vote Paulo ... added to the pages of requests for improving shape scripts.

Isn't it time these got some attention?  It just seems that a small burst of development could really alter our capabilities here.