Book a Demo

Author Topic: Sequence diagrams with Shape scripts  (Read 5137 times)

davidson

  • EA User
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Sequence diagrams with Shape scripts
« on: August 14, 2016, 02:10:16 pm »
Hi
Apologies in advance I have 4 questions :

Question 1
Can we have an image upload facility on this forum please? I know it is not a support forum, but there are a lot of very experienced subject matter experts that contribute  and provide a lot of help to the community. It would be great to help demonstrate and communicate with screen shots etc.


Question 2

I have created a series of shape script elements, based on UML components, with the purpose of being able to use them in sequence diagrams.

However, when I come to use them, they are re-sized the wrong shape, and all writing etc. disappears off the screen between compartments.

Is there anyway I can
a) Check the diagram type and re-shape back to original for sequence diagrams
b) Make the element self size correctly, overwriting the Sequence defaults
c) (I think i came across this somewhere), create a default sequence diagram with native shapes set by default
d) Set an alternative image to be used (do we have an image of native components?) or script when added onto a sequence diagram?

Question 3

Is it possible to remove all the excess attributes from an element such as component? e.g. Constraints, requirements, alias, priority etc? I'm trying to make this user friendly as possible for Business Architects.

Question 4
Are there any methods to remove the original Icons from Shape scripted elements from the traceability menu, and the package element when on a diagram?

Sorry for being so greedy.
Chris.

« Last Edit: August 14, 2016, 02:16:22 pm by davidson »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Sequence diagrams with Shape scripts
« Reply #1 on: August 14, 2016, 07:45:01 pm »
1) I guess no. Has been asked ever since. Probably once hell freezes over. So long you need to upload to a web server and use the link.
2) a) AFAIK only through an add-in, b) never used shape script with SD but can think that this is troublesome, c) don't understand the question, d) there is no image for shapes and you can set the alternate shape only through an add-in (never tried templates with that)
3) In a diagram you can modify Properties/Elements/Compartments or from the context of single elements Features/Feature...Visibility
4) Don't understand the question

5) ask one question in one thread

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8112
  • Karma: +119/-20
    • View Profile
Re: Sequence diagrams with Shape scripts
« Reply #2 on: August 15, 2016, 10:29:15 am »
2a) Yes, you can query the diagram type and then call drawnativeshape
b) No. A shape script can't change something from being a lifeline. You can only change the appearance of the lifeline header
c) I'm afraid I'm not sure what you're after either
d) You can't set an alternate image on a sequence diagram. However, if you shape script requests to draw an alternate image I imagine that would work to replace the header.


davidson

  • EA User
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Sequence diagrams with Shape scripts
« Reply #3 on: August 15, 2016, 05:03:36 pm »
Sorry what I meant by C was - I think you can set a diagram to show the native elements only (thus bypassing any shape scripted presentation).
if that were the case, I could use that, but I remember reading it somewhere, but cannot find reference to it anymore.

if you can check the diagram type, and drawnativeshape though, that would be my first choice.
How on earth do you reference a diagram type? I have searched Google a multitude of times for thsi, and never found out how.

Thanks Gys

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Sequence diagrams with Shape scripts
« Reply #4 on: August 15, 2016, 07:18:46 pm »
As I said you will need an add-in to check that for you.

q.

davidson

  • EA User
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Sequence diagrams with Shape scripts
« Reply #5 on: August 15, 2016, 07:55:40 pm »
Yes but I have checked for an add-in.
Now that I know one exists for sure I'll check again

Anyone heard of diagram.stereotype and what does it do?
« Last Edit: August 15, 2016, 08:30:39 pm by davidson »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Sequence diagrams with Shape scripts
« Reply #6 on: August 15, 2016, 08:44:17 pm »
You can stereotype diagrams like element. Just edit the properties.

q.