Book a Demo

Author Topic: GenerateDiagramFromScenario  (Read 4726 times)

Jeremie

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
GenerateDiagramFromScenario
« on: July 28, 2015, 09:14:11 pm »
Hi everyone,

Quick question: i'm using EA version 10 and try to generate a sequence diagram from scenario using c#

Code: [Select]
GenerateDiagramFromScenario(usecase.ElementGUID, EnumScenarioDiagramType.sdSequence, 0);

But it throws a NotImplementedException
So my question is: can i do that with my actual version of EA or do i have to update to EA 11 or 12 ?

Thanks,
Jeremie.
« Last Edit: July 28, 2015, 09:14:33 pm by Jeremie »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: GenerateDiagramFromScenario
« Reply #1 on: July 28, 2015, 11:15:58 pm »
It's in the help since (at least) 9.3. So: report a bug. Looks like a method that's not widely used.

q.

E.Eckstein

  • EA User
  • **
  • Posts: 35
  • Karma: +0/-0
    • View Profile
Re: GenerateDiagramFromScenario
« Reply #2 on: July 28, 2015, 11:22:35 pm »
Hi,

It might be something different.
If you upgraded recently you might just use the wrong Interop.EA of maybe EA9 (though intellisence shouldn't work then)...
(In 12 at least it works fine - just tested it)

But qwerty is right, if you use the right version of EA's dll and you get this Exception it seems to be a bug.

Regards,
Eric

Jeremie

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: GenerateDiagramFromScenario
« Reply #3 on: July 28, 2015, 11:33:09 pm »
Thanks for your answers

I reported the bug since i'm using the right version of Interop EA dll
By chance is there another way to generate a sequence diagram from a scenario ?

Jeremie.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: GenerateDiagramFromScenario
« Reply #4 on: July 28, 2015, 11:40:13 pm »
As commented on SO: No, except using the manual function in the GUI.

q.

P.S. Have you tried different diagram types (AD instead of SD)? I noticed when trying SD (manually) the diagram is empty.
« Last Edit: July 28, 2015, 11:44:50 pm by qwerty »

Jeremie

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: GenerateDiagramFromScenario
« Reply #5 on: July 28, 2015, 11:48:09 pm »
Same thing, NotImplementedException

I also had the blank diagram but i thought the method was misplaced in the script

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: GenerateDiagramFromScenario
« Reply #6 on: July 28, 2015, 11:51:50 pm »
Just contact Sparx support directly via (or use the bug report link bottom right of this page). At least you'll get a bug reported. In the best case they come up with a work around.

q.
« Last Edit: July 28, 2015, 11:52:03 pm by qwerty »

Jeremie

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: GenerateDiagramFromScenario
« Reply #7 on: July 28, 2015, 11:55:04 pm »
EDIT: I used an outdated GenerateDiagram method
Now i can generate activity diagrams but still blank for sequence

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: GenerateDiagramFromScenario
« Reply #8 on: July 29, 2015, 12:34:16 am »
Probably for the same reason as the manual creation does not do anything for SD....

q.