Setting C# in Astah

Astah supports modeling in Java, C++, and C#.
If you are modeling in C#, set so in Astah first.

  1. Select a root package on a tree and check [C#] in the bottom pane.
    Set C#

  2. Setting this as C# will enable you to C#-specific attributes for Classes, Attributes, and Operations in the [Language] tab.
    C#-specific options

Import C# source code

You can import C# source code by using this C# Reverse Plug-in (free).


Export C# source code

Astah can generate C# Skeleton Code from selected Diagram Elements.
The Definitions of Classes and Operations are exported as Documentation Comments.

1. Go to [Tools] – [C#] – [Export C#] in the Main Menu.
Export C-sharp menu

2. Select the target folder, target Model, from which .cs files are to be generated and click [OK]. Specify the charset to use upon exporting C#.
Export C#