C# Reverse Engineering

The easiest way to reverse engineer C# into Astah Diagrams!

C# Reverse Engineering Plug-in is the easiest way to reverse C# source code into UML diagrams in Astah.

How to Reverse Engineer C# with Astah

  1. Download the C# reverse engineering Plug-in from here
  2. Run Astah and go to [Help] - [Plugin List] menu and click [Install] button (if you are running Astah 6.6.x or earlier click here).
    anycode plugin
  3. Select the .jar file and restart Astah.
    anycode plugin
  4. [Import C#] is now added under [Tool] - [C#]
  5. Have your C# source code ready (Export it to XML by using Doxygen)
    Instructions for using Doxygen
  6. Select [Tool] - [C#] - [Import C#] and select the XML file
  7. You can generate Class diagrams with the Source Code you imported just by selecting [Auto Create Class Diagram/Detailed Class Diagram] menu from the Pop-up menu of Project, Package, Subsystem, Model or Classes in the Structure Tree. TIP - How to auto-create Class Diagrams

Instructions for using Doxygen

  1. Download Doxygen, a free tool that can be used to export C# source code to an XML file.
  2. Install and Launch Doxygen, the [Doxygen GUI Frontend] dialog will open, set it up as follows. (Version 1.8.9.1 shown)

    [Wizard] tab

    [Project][Mode][Output]
    Wizard TabWizard TabWizard Tab
    [Project]Specify the Source Code Directory where the C# Source code exists.
    Do not use the following symbols: &, <, >, * or @ in the destination directory.
    [Mode]Choose [All Entities] and [Optimize for Java or C# output]
    [Output]Choose [XML]

    [Expert] tab

    [Input]

    Wizard Tab

    [Preprocessor]

    Wizard Tab
    [Input]Specify the encoding which is used in the source code (e.g. UTF-8, CP1252)
    [Preprocessor]Make sure to check the three options, [Enable_Preprocessing], [Macro_Expansion] and [Search_includes], the rest can be by your preference.
  3. Go to [File] - [Save] to save this configuration.
    Wizard Tab
  4. Go back to [Doxygen GUI frontend] dialog, select [Run] tab. Specify the working directory and then click [Run doxygen] button.
    Wizard Tab
  5. The message "*** Doxygen has finished" appears when it completes successfully. Import the directory which includes "index.xml" file from [Tool] - [C#] - [Import C#] from Astah.
    Wizard Tab

How to install plug-in in Astah 6.6.x or earlier

Save the plug-in .jar file in the 'plugins' folder under the Astah installation folder and restart Astah

Version History

Plug-in VersionRelease DateAstah Professional VersionDownload / Release Notes
1.0.62015/07/17Version 6.5 or laterDownload
1.0.52015/02/23Version 6.5 or laterDownload
1.0.42014/02/27Version 6.5 or laterDownload / Release Notes

This Plug-in works with Astah Professional