Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Martin Walke on April 21, 2010, 11:26:53 pm
-
Hi all,
I'm trying to add Use Case diagrams to a model under Automation but keep getting a "type mismatch" error.
This is my code in VB:
Dim myDiagram As EA.DiagramObject
Set myDiagram = parentPackage.Diagrams.AddNew("MyName", "Use Case")
I'm not 100% sure of the type of diagram of "Use Case" but that's what's shown in the table t_diagram when I've added diagrams manually.
TIA
Martin
-
try
Dim myDiagram As EA.Diagram
Geert
-
Many thanks Geert. That did it. I think I had that originally but it was failing because of something else and then I changed too many things and got lost. :-[
BTW, thanks for the link to the Excel to EA importer. It give me a great kick start. [smiley=thumbsup.gif]