Search code examples
asp.netclassdiagramvisio

How to create Visual Studio style class diagram in Visio?


I need to plan out a Class, Method, Attribute style diagram, I have looked at the Class Designer in Visual Studio, but it seems to not do what I want. I want to be able to have a diagram show the classes just like in Visual Studio - except I want to be able to represent the parameters these methods require, for example:

getStock(StockID)

And this be shown in the Diagram. This is for an ASP.NET website - what are the best ways of creating a diagram for a website like this to represent the methods - I don't want to start generating classes - which is why I want to use Visio, plus I am more familiar with Visio than the Visual Studio Class designer as I mostly use the Express line of products which don't feature this.

I want this for example for Default.aspx:

Default.aspx
(View)

Methods:  
- FeaturedStock()  
- GetStock(StockID)  
- ShowContent()
- ShowImage(StockID) 

I don't want to use UML as this is too confusing - the Visual Studio Class diagram is close to what I want but I cannot get it to show the Parameters on my Methods.

My main aim is to have "stubs" for each method a page requires to implement that functionality as a Developer this is the easiest way I can plan out this project.


Solution

  • NClass was quite good the last time I used it. It's a UML tool, but a drag and drop GUI and not at all confusing. Plus, it will generate code if you want it to; you don't have to use it for that though.