Buy

Buy
Buy Professional or Ultimate Edition

Downloads

Advertisement

Download - Mirrors

Get it from CNET Download.com!

Facebook

How to import classes from .NET assemblies

11/11/2010 12:02:40 AM | Dušan Rodina | 1658x

This tutorial shows how to access and use reverse engineering.

1) Create new project or open the existing one

2) Click on menu item Tools > Reverse Engineering > .NET Framework

3) In displayed dialog click on button Add

4) Select the file (exe or dll) you want to import

5) Click on button Next

6) Choose namespaces you want to import

7) Click on button Import

8) Program generates class and package diagrams

Add Comment
Reverse engineering 12/22/2010 10:48:44 PM
0 + - 0

How can I convert C++ text files (*.h *.cpp) to classes? It's possible?

Jordi Reply
RE: Reverse engineering 12/22/2010 11:06:53 PM
0 + - 0

It is not possible in the current version, but it will be very likely part of the version 5.

Dušan Rodina (author) Reply
RE: RE: Reverse engineering 2/15/2011 12:35:08 PM
1 + - 0

Two questions:

Will you also allow in .NET like C# (*.cs) and VB (*.vb) classes along with their methods from the source code?

From those, will you also be able to generate other diagrams like sequence (from what the methods call other methods themselves) and activity diagrams?

I'm very interested to see if you're able to do that with your next version. It would definitely be helpful to trace out threading issues

deafie Reply
RE: RE: RE: Reverse engineering 2/15/2011 7:57:27 PM
1 + - 0

Source code processing of C# and VB will be supported.

It is still questionable whether the next version will be able to generate sequence and activity diagrams. In any case, I added it to my list of requirements.

Dušan Rodina (author) Reply
11/17/2010 1:50:48 PM
0 + - 0

Im guessing that the same is true for SQL2008 tables?

Roger Reply
RE: 11/17/2010 1:59:22 PM
0 + - 0

You can import your tables from database using menu Tools>Reverse Engineering>Database. MS SQL Server 2008 as source is supported.

Dušan Rodina (author) Reply
RE: RE: 5/27/2011 1:21:23 AM
0 + - 0

Do you planing include in support othes DBMS, for example Oracle, PG, MySQL or Hierahic DB?

If YES, when you planing do it?

Dmitry Reply
RE: RE: RE: 5/29/2011 4:19:57 PM
1 + - 0

I'll try to include the support for them in the next major version 5.

Dušan Rodina (author) Reply
RE: RE: RE: RE: 5/29/2011 11:42:26 PM
0 + - 0

Thank you very much. I'm don't hope that this possible as soon.

Dmitry Reply
SQL2008 11/17/2010 4:37:15 PM
0 + - 0

Hmmm. must be something I'm doing wrong then. It doesn't appear to work for me.

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

at System.ThrowHelper.ThrowKeyNotFoundException()

at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

at SoftwareIdeasModeler.Core.Importing.Database.DiagramCreator.CreateErdDiagram(Model model)

at SoftwareIdeasModeler.MainForm.databaseToolStripMenuItem_Click(Object sender, EventArgs e)

at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)

at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

at System.Windows.Forms.ToolStrip.WndProc(Message& m)

at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Roger Reply
RE: SQL2008 11/17/2010 4:44:38 PM
0 + - 0

Thanks for details, I will check it out.

EDIT: Version 4.80 solved this problem (at least for me).

Dušan Rodina (author) Reply
doesn't work 11/15/2010 9:17:19 PM
0 + - 0

This would be great if it actually worked, but it doesn't ?

Scott Reply
RE: doesn't work 2/28/2011 9:33:17 AM
0 + - 0

I've probably the same issue. The assembly is .NET 2.0, but the "Import Object Model" window has only the root element of the tree. No namespaces or classes ale loaded. I find the problem is in Debug/Release compilation. The Release version loads only the namespace, Debug version loads nothing.

Frun Reply
RE: RE: doesn't work 3/1/2011 12:18:09 AM
0 + - 0

I will do some other tests and try to find out where is the problem. It will be fixed as soon as possible.

Dušan Rodina (author) Reply
RE: doesn't work 11/15/2010 9:38:19 PM
1 + - 0

It doesn't work with .NET 4.0 assemblies, because of binary incompatibility of .NET 4.0 with previous versions of .NET. I will try to bring support for .NET 4.0 in the next major version of Software Ideas Modeler.

Dušan Rodina (author) Reply
RE: RE: doesn't work 3/24/2011 11:36:59 PM
0 + - 0

Do you know when .NET 4.0 assemblies will be supported? I'm using the last version and it doesn't work yet.

Aurino Reply
RE: RE: RE: doesn't work 3/24/2011 11:48:46 PM
0 + - 0

Very likely in version 5.

Dušan Rodina (author) Reply
< 1 >