Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Jeremie on July 28, 2015, 09:14:11 pm

Title: GenerateDiagramFromScenario
Post by: Jeremie 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.
Title: Re: GenerateDiagramFromScenario
Post by: qwerty 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.
Title: Re: GenerateDiagramFromScenario
Post by: E.Eckstein 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
Title: Re: GenerateDiagramFromScenario
Post by: Jeremie 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.
Title: Re: GenerateDiagramFromScenario
Post by: qwerty 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.
Title: Re: GenerateDiagramFromScenario
Post by: Jeremie 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
Title: Re: GenerateDiagramFromScenario
Post by: qwerty 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.
Title: Re: GenerateDiagramFromScenario
Post by: Jeremie 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
Title: Re: GenerateDiagramFromScenario
Post by: qwerty on July 29, 2015, 12:34:16 am
Probably for the same reason as the manual creation does not do anything for SD....

q.