Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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#
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.
-
It's in the help since (at least) 9.3. So: report a bug. Looks like a method that's not widely used.
q.
-
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
-
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.
-
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.
-
Same thing, NotImplementedException
I also had the blank diagram but i thought the method was misplaced in the script
-
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.
-
EDIT: I used an outdated GenerateDiagram method
Now i can generate activity diagrams but still blank for sequence
-
Probably for the same reason as the manual creation does not do anything for SD....
q.