AI Power Tools for Sparx EA Docs Release 3.6.4

Modeling

In this section

PageWhat it coversCodeCoworkDesktop chatVS Code
Build a model from source documentsTurn requirements or design documents into an ArchiMate and BPMN model with packages, elements, connectors and diagrams, and prove it by counting back and rendering.YesYesWith youWith you
Load a hierarchy and generate navigation diagramsLoad a hierarchical reference model, such as a capability map or technology taxonomy, into the repository and build click-through drill-down diagrams over it.YesYesWith youWith you
Model classesCreate classes with attributes, operations and operation parameters, relate them, and draw a class diagram.YesYesWith youWith you
Start from a model patternImport a model pattern that ships with EA, such as a cloud reference pattern, through XMI as the starting point for a diagram, then give its elements vendor icons.YesYesWith youWith you
Choose the right diagramFrom what you want to understand and the measured content of a scope, recommend a diagram type and viewpoint, including when the scope spans several modeling languages and no conformant view exists.YesNoNoWith you
Compose a diagramBuild a diagram from model content, rather than hand-placing it, by choosing a layout grammar, computing the geometry, placing and styling the elements, then verifying, linting and correcting.YesNoNoWith you
Tidy and style a diagramMake an existing diagram read as deliberate: align and size it, route its connectors, and set its colors, line styles and labels.YesYesWith youWith you
Reproduce a diagram from a pictureRecreate a diagram that exists only as an image, as real model content in EA, and measure how closely the result matches the picture.YesNoNoWith you
Draw a cloud architecture diagram with vendor iconsDraw AWS, Azure or Google Cloud elements as their vendor icons instead of plain boxes.YesYesWith youWith you
Copy a package as newDuplicate a package subtree, including its elements, attributes, operations, tagged values, connectors and diagrams, with fresh identifiers everywhere, so the copy is independent of the original.YesYesWith youWith you
Move content in and out of Enterprise ArchitectExport a package as XMI (or import XMI back), export a diagram as a picture or an editable Visio file, or generate a formatted document, and know what each of four ways of moving content gives you and what it does not.YesYesWith youWith you

Where it runs: Yes = runs fully · With you = runs, and you do the steps in EA’s window · Partly = one part needs a capability the client lacks · No = not available · TBC = to be confirmed

Modeling is getting the architecture into the repository and keeping it there: models built from documents and hierarchies, class models and patterns, diagrams that make an argument, and content moved in and out of Enterprise Architect.

How to read these scenarios: How to read a scenario. Examples use Westbrook Bank as an illustration. Substitute your own model, technology and paths. Run the start-of-session check (Start a session safely) before any write.

Conventions for the writing scenarios

  • Writes are sequential. EA handles all automation calls on one thread. Parallel package creation fails intermittently. The bulk operations of AI Power Tools replace many single calls.
  • A success reply means data was written. It does not mean every property landed, and it does not mean a diagram looks right. Read back what matters, and render what you drew.
  • Baseline first. A deletion made through EA's automation interface cannot be undone. See Protect a change with a baseline.

Diagrams. A diagram is an argument about the model, made visually. The model cannot tell you where things go. The diagram scenarios, Choose the right diagram to Draw a cloud architecture diagram with vendor icons, use the two diagram skills together. ea-diagram-advisor decides what to draw, and recommends without drawing. ea-diagram-composition draws it, then checks and corrects it.

Things to know about EA diagrams

  • Look at every diagram you generate. A success reply means data was written, not that the picture reads well. EA caches renders, so use the verify step of AI Power Tools, which reloads before it renders, when the question is "is this right".
  • Z-order: a lower sequence number is nearer the front. A container needs a higher sequence number than its contents, or it paints over them.
  • EA draws relationships between placed elements whether or not a stored link exists. A visible line is not evidence that you can style it. A line with no stored link has nothing to write a style to.
  • EA grows a box to fit a name it cannot break. It wraps on spaces only and never inside a word. The stored geometry keeps the old size, so any check that reads stored rectangles can certify geometry that EA does not paint. Render, and read the picture.
  • EA's coordinates are not the usual ones. Vertical positions are negative and the top edge is the larger number. The AI and AI Power Tools handle this. It matters only if you read raw coordinates in a result.