Archiv der Kategorie: Modellierung

Sparx Systems Enterprise Architect + C#: Get all EA Elements of a package

Problem All Elements of a package should be retrieved. Approach – Ansatz The method getElementsOfElement, which has been defined in the previous article is used to add all subelements of a package. Lösung – Solution public List<EA.Element> getElementsOfPackage(EA.Package package, string … Weiterlesen

Veröffentlicht unter C#, Modellierung, Programmierung, Sparx Systems Enterprise Architect | Hinterlasse einen Kommentar

Sparx Systems Enterprise Architect + C#: Recursively get all elements and sub elements of an EA Element

Problem All elements of an subelement should be catched Approach – Solution Recursively iterate through all subelements and AddRange (already a list) to the List. The interuption of the recursion is, when an empty List is used as parameter for … Weiterlesen

Veröffentlicht unter C#, Modellierung, Programmierung, Sparx Systems Enterprise Architect | Hinterlasse einen Kommentar

Sparx Systems Enterprise Architect + C#: Get Top Package from selected Package

Problem The top package of an Enterprise Architect Project EAP should be retrieved Approach Navigate to the Parent ID until the package return null. Solution – Lösung public EA.Package getTopPackage(EA.Package selectedPackage) { EA.Package package = null; try { // If … Weiterlesen

Veröffentlicht unter C#, Modellierung, Programmierung, Sparx Systems Enterprise Architect | Hinterlasse einen Kommentar

IBM Doors DXL: Import from Sparx Systems Enterprise Architect

Problem To refresh all UML Diagrams within an Formal Doors Module, a script is needed that imports all actual versions of a UML Diagram. Approach * Copy the GUID of the Diagram / Note ** right-click the project menu on … Weiterlesen

Veröffentlicht unter DXL, Modellierung, Sparx Systems Enterprise Architect | 2 Kommentare