The Export works fine, except some Details i mentioned in another post.
The second EA-Instance shows every Content of the imported Model correctly. Every package, diagram and element is contained.
But ive got a problem if i access (EA Api) the diagrams of the second repository, which holds the imported stuff.
I loop through all packages and their diagrams. I acces diagrams in the following way, like i always did:
EA.Package p = RootPackage;
Logging.Write("Package: " + p.Name);
foreach(EA.Diagram d in p.Diagrams)
{
//TODO: Für den Fall, dass ein Paket nur ein Diagramm enthalten sollte, solltest du für das Paket-Chapter-Element das Diagramm mit einfügen. Bedenke die Besonderheiten bei der Kapitel-Stufe.
Logging.Write(" Diagram: " + d.Name);
}
The Diagram-Collections are containing the correct number of diagrams. But only every second diagram of the actiual diagrams. Remember that the diagrams are displayed correctly in EA.
Here is an example:
I have diagrams:
- Classdiagram_1
- Classdiagram_2
- Classdiagram_3
- Classdiagram_4
But the Collection "Package.Diagrams" contains:
- Classdiagram_1
- Classdiagram_3
- Classdiagram_1
- Classdiagram_3
What is the problem here ?