C# Code Reverse Plug-in
C# Reverse Engineering Plug-in is the easiest way to reverse C# source code into UML diagrams in Astah.
Latest Version: 1.0.6 (July 17, 2015)
Compatible with: Astah Professional 6.5 or later
No technical support is provided.
How to Install
Download the Plug-in file by clicking the blue Download button at the top of this page.
After the download is complete, drag the downloaded .jar file to an open instance of Astah. A pop-up will appear asking you to confirm installation, choose [Yes].
If the pop-up below opens restart Astah.
The [Plugin] menu exists in
or later. if you are using version 7.1 or earlier,
read this FAQ
If you see the [Import C#] option under [Tools] - [C#], your installation is complete!
How to Use
First, you need to export C# code to XML using
Download and install
Launch Doxygen from [doxygen] - [Doxywizard]. [Doxygen GUI Frontend] dialog opens, select [Wizard] - [Project] and specify the items as below.
Enter the project name
Project version or id
Enter Project version or ID
Source code directly
Specity the source code directory
Check if you want to scan recursively including the sub folders.
Do not use the following symbols &, <, >, * or @.
Next move to [Wizard] - [Mode] and check the items shown in the figure below.
Now configure [Wizard] - [Output] and check [XML].
Go to [Expert] - [Input] and specify the encoding which is used in the source code (e.g. UTF-8, CP1252).
List of supported encoding
Still in [Expert] - [Preprocessor]. Make sure to check the three options, [Enable_Preprocessing], [Macro_Expansion] and [Search_includes], rest can be your preference.
Go to [File] - [Save] to save all the configuration you made, and go back to [Doxygen GUI frontend] dialog, select [Run] tab. Specify the working directory and click [Run doxygen]. If Doxygen finished converting without any errors, you will see the message "Doxygen has finished" in the window.
In Astah, create a new file or open an existing file. Then go to [Tools] - [C#] - [Import C#] and start loading the XML file.
To create a class diagram with imported source code, right-click on a package and
generate a Class Diagram
When import fails
Make sure that you set the correct encode in Doxygen. Please follow the step below to re-generate the .xml file.
Check which encoding is used in the C# source code.
All source code files need to be using the same encoding.
Launch Doxygen. Go back to
to configure the setting.
, set the same encode that you checked that is used in the C# source code.
List of Encode Doxygen supports
Go back to
and generate the XML and try importing to Astah again.
We tested this plugin with Doxygen version 1.8.6. If you are usin other version of Doxygen, use
If this solution didn't help, please
Download Old Versions
Version 6.7 or later
Version 6.6 or later
Back to Plugin List
Astah UML Pad
Quick Start Video
Are You Modeling?
Friends of Astah
Meet our CEO
CV Members Site