Tag Archives: download

Sparx, Enterprise Architect, Class diagram quick start

Abstract

In this post we’ll see how to use EA to draw a basic class diagram quickly and with easy. In the end of this post you should be able to start working with EA as a reverse engineering tool and as a UML drawer. The added values of this are:

  • The ability to draw UML faster then a board + marker / paper and a pen.
  • Reusability of UML / designs (in contrast to Visio / paper / board drawing, reason: elements change over multi-drawing >> update maintenance that EA solves).

Quick start guide

Getting started

Downloading EA (Enterprise Architect)

Importing Source Code

Importing your code

Inserting an existing entity

I found that there are two ways  to do the job:

  1. Right click the canvas, select “Insert Existing Element”.
  2. A tip I found here: http://www.sparxsystems.in/blog/enterprise-architect-tips-compilation1/

Tip #2: Insert Existing Element Draw connector to a model Element One can insert an existing model element and establish a relationship while drawing a new connector Follow usual steps to draw a connector, but press “Shift” before choosing the type of relationship to be created, this will invoke the “Select Existing Element” dialog to choose a model element instead of creating a new element. Connector-InsertExistingElement

Insert Related ElementsRelating an entity to an existing entity

Right-click on element >> Insert Related Elements Read more here…

Prettifying the view

Feature Visibility

You can set a collection of options to display or hide the features of that element on a specific diagram.

  1. Select the class element
  2. Right mouse click >> “Feature and compartment visibility (Ctrl+Shift+Y)”
  3. Disable attributes and operations accordingly.

Auto-size elements

After you shrink the size of the elements using Feature Visibility, you can auto-size the element to take minimal space. To Auto-Size select the wanted elements and press Alt+Z

Define how features are displayed on the diagramDefine how features are displayed on the diagram

In most cases you only need the class/entity name, some operation (without the parameters) and their return value and the relations between the entities, everything else detracts. To normalize the view:

  • Select Menu >> Diagram >> Properties (F5)
  • Select the wanted view behavior and press OK

Designing

Adding new entities

Adding unrelated entityAdding new entity/class

Right click an empty space on the canvas and select ‘New element or connector’, select the wanted entity (usually a class). Name it and press OK. Read more here…

Adding related entity

If you select an element you’ll notice that on the right there is a ‘quick tools’ quick tools icons. Select the up arrow and drag it to an empty space on the canvas. Once released a menu will open, select the relation type while holding the shift, this will open a search for known entity.

Resources

Quick Start Guide

Useful tips found

More comprehending guides found

Running WcfTestClient Standalone – without VS.Net

Here are the minimal files needed to run WcfTestClient on a client that haven’t got VS20xx installed:

Download WcfTestClient-Standalone here.

Files list

Here are the minimum files you need to sen to your client:

  1. Microsoft.VisualStudio.VirtualTreeGrid.dll
  2. SvcUtil.exe
  3. SvcUtil.exe.config
  4. WcfSvcHost.chm
  5. WcfSvcHost.exe
  6. WcfSvcHost.exe.config
  7. WcfTestClient.chm
  8. WcfTestClient.exe
  9. WcfTestClient.exe.config

Resources

Info: Running WcfTestClient Tool in a PC without VS.Net 2008 – Guillermo G. Blog.

Downloading wcf test client without VS

Reverse engineering Microsoft code/API using Re-sharper

In a nutshell

  • Select the wanted function/variable/class you wish to ‘reverse engineering’ (e.g. string).
  • Using the mouse
    • Right-click, select ‘Navigate to’
      • (Last) select ‘Sources from Symbol files’
  • Using the Keyboard
    • Press <CTRL>+<SHIFT>+<G> over it
    • Select ‘Sources from Symbol files’ to see the code
      • Re-Sharper will download the PDB and show you the code.

Using the keyboard menu