Find all Base Lines with one klick with a Model SQL-Search « Enterprise Architect SparxSystems Blog English. Filed under Common | Author: Horst Kargl Working with base lines a cool thing.
However, EA currently doesn’t provide a simple view to see all base lines at once. Actually to see all packages with base lines. With the flexibility of the model search, it is an easy task to provide a search which find all the needed information. Sure, you have to know the structure of the EA database. Because baselines are created per package, the table t_package will be used. Because EA allows to have multiple equally named elements, one could consider these packages are not the same, which could be the case. The big negative number in the column ID comes from the fact that the example is have used is a Replicated EAP file. You have to keep in mind that Root Packages, in my case “Model” with the cannot be found in the project browser from the result list!
The SQL query is the following: Here is a link to the query as Text. The relevant Tables: Tutorial: Create your first C# Enterprise Architect addin in 10 minutes « Geert Bellekens' blog. Enterprise Architect from Sparx Systems is a great UML Case tool, but you can make it even better by adding your own functionality in the form of an add-in.
This post will take you through the basic steps to create your first C# EA add-in in about 10 minutes. You can use a number of programming languages to create add-ins for EA, but personally I like C# the best. Prerequisites Before you start you should have following software on your computer ready to use: Enterprise Architect (download the fully functional trial if you don’t have it installed yet)Visual Studio (I’m using the free Visual C# 2010 Express for this tutorial) EA’s addin architecture To fully understand the steps necessary to get your add-in running you should first understand how EA’s add-in architecture works. When EA starts up it will read the registry key [HKEY_CURRENT_USER\Software\Sparx Systems\EAAddins]. The (default) value of the key contains the name of the assembly and the name of the add-in class separated with a dot. Automation Interface: Passing Parameters - Calling Applications from EA. Introduction to Enterprise Architect's Automation Interface.
This page provides code examples that use the Automation Interface. • Visual Basic Automation Interface Examples The following examples use Visual Basic 6.0 to perform calls to the Automation Interface and retrieve/update data contained in the EA repository.
Document Reports - An interface with MS Word for generating documents. Custom Views - a graphs report Add-In for display in a diagram view. Set up VB - How to set up Visual Basic. Both examples provide a downloadable executable setup file as well as the Visual Basic source code used to construct them. A reasonable knowledge of Visual Basic is assumed if modifications are to be made to the examples.
Guidelines on the use of the Automation Interface have been provided in EA's help file under "Automation and Scripting".