Gunnar Peipman's ASP.NET blog

ASP.NET, C#, SharePoint, SQL Server and general software development topics.

Sponsors

News

 
 
 
 
 
DZone MVB

Links

Social

Visual Studio 2010: Generating sequence diagrams on the fly

One nice feature that Visual Studio 2010 provides is generating sequence diagrams on the fly. Just point out method and choose diagram generating option from context menu. In this posting I will show you how to generate sequence diagrams on the fly.

To keep example illustrative and simple I will use simple code. Let’s suppose we have ASP.NET MVC application with following controller.


public class PriceEnquiryController : Controller

{

    // ... some properties and methods ...

 

    public ActionResult Index()

    {

        var model = new PriceEnquiryListModel();

        model.PriceEnquiries = PriceEnquiryRepository.ListPriceEnquiries();

 

        return View(model);

    }

}


Visual Studio 2010: Sequence diagram generation optionsLet’s say we want to generate sequence diagram for this method. All we have to do is to right click on method with mouse, select “Generate Sequence Diagram …” and modify some options.

You can select what kind of calls you want to include and exclude. Setting these options you can make diagram to reflect only those parts of your code that you really need to visualize.

If you look at the image you see that you can also set call depth. With more complex methods it may be very helpful because too large call depth causes huge diagram with too much knowledge on it.

When we are done with options we have to click “OK” button and Visual Studio 2010 generates sequence diagram. You can click on image to see it in original size.

Visual Studio 2010: Sequence diagram

This diagram is pretty simple and primitive but you can also generate more complex diagrams. Just set options you need and let Visual Studio 2010 generate – it works like charm. Let’s hope we get more diagrams when Visual Studio 2010 first stable version is released.


kick it on DotNetKicks.com pimp it 顶 Progg it Shout it
Shout it!

Comments

PimpThisBlog.com said:

Thank you for submitting this cool story - Trackback from PimpThisBlog.com

# November 20, 2009 7:34 AM

DotNetShoutout said:

Thank you for submitting this cool story - Trackback from DotNetShoutout

# November 20, 2009 7:35 AM

Twitter Trackbacks for Visual Studio 2010: Generating sequence diagrams on the fly - Gunnar Peipman's ASP.NET blog [asp.net] on Topsy.com said:

Pingback from  Twitter Trackbacks for                 Visual Studio 2010: Generating sequence diagrams on the fly - Gunnar Peipman's ASP.NET blog         [asp.net]        on Topsy.com

# November 20, 2009 7:36 AM

9eFish said:

9efish.感谢你的文章 - Trackback from 9eFish

# November 20, 2009 7:37 AM

DotNetKicks.com said:

You've been kicked (a good thing) - Trackback from DotNetKicks.com

# November 20, 2009 7:37 AM

progg.ru said:

Thank you for submitting this cool story - Trackback from progg.ru

# November 20, 2009 7:37 AM

Servefault.com said:

Thank you for submitting this cool story - Trackback from Servefault.com

# November 20, 2009 7:39 AM

uberVU - social comments said:

This post was mentioned on Twitter by gpeipman: New blog post: http://tinyurl.com/yj9y2rh - Visual Studio 2010: Generating sequence diagrams on the fly

# November 20, 2009 9:19 AM

Visual Studio 2010 and .Net Framework 4.0 - Gunnar Peipman's ASP.NET blog said:

Pingback from  Visual Studio 2010 and .Net Framework 4.0 - Gunnar Peipman's ASP.NET blog

# November 20, 2009 5:42 PM

Daily tech links for .net and related technologies - November 21-23, 2009 - Sanjeev Agarwal said:

Pingback from  Daily tech links for .net and related technologies - November 21-23, 2009 - Sanjeev Agarwal

# November 22, 2009 1:55 AM

Kjell-Åke Andersson said:

And also lets hope that we will be able to export the diagrams as images as well.

# November 22, 2009 6:19 AM

Links on VS 2010 and Sequence Diagrams | Anith Gopal said:

Pingback from  Links on VS 2010 and Sequence Diagrams | Anith Gopal

# December 15, 2009 7:23 PM

adi damty said:

i tried to get the generate sequence diagram from the visual studio as you said, but i don't have the row "generate seqence diagram". how can i solve this problem ?

thank u,

adi damty@gmail.com

# December 29, 2009 4:03 PM

slavo said:

i can't see the row "generate seqence diagram". How does it resolve? I don't have "Architecture Explorer" in View. Help!

# January 10, 2010 1:30 PM

DigiMortal said:

Hi, Slavo! These features come with VS2010B2. You should have Ultimate version.

# January 10, 2010 8:22 PM

Kris said:

Hi,

How can I generate Sequence Diagram for the entire Project / Solution in Visual Studio 2010?.

Any workaround or solution to the above query is highly appreciated.

FYI: I am currently using VS 2010 Beta2 Ultimate Edition.

Cheers,

Kris

# January 15, 2010 10:34 PM

WPF - A complex simplicity or a simple compexity? said:

Those of you who have been playing around with Visual Studio 2010 Beta 2 like myself might have tried

# February 16, 2010 2:44 PM

Dan Maharry said:

Notes From Guathon Birmingham

# April 6, 2010 8:57 AM

UT said:

HOW TO EXPORT SEQUENCE DIAGRAM FORM VS2010 IN TO OTHER FORMATS?

# September 20, 2010 11:16 PM

DigiMortal said:

Can you, please, specify what are the other formats you are interested in?

# September 21, 2010 4:11 AM

randomGuy said:

I would be quite interested in something like the Class Diagram "Export as image" functionality. Easy, supports PNG.

# October 5, 2010 11:41 AM

DigiMortal said:

Thanks for feedback, randomGuy! Currently you can use my Visual Studio 2010 extension to save diagrams as images. You can find it here: weblogs.asp.net/.../visual-studio-extension-save-uml-diagram-as-image.aspx

# October 6, 2010 5:41 PM

marie123 said:

I have ultimate 4.0.30319 RTMRel  and I don't seem to get much meet in a method sequence diagram?  That is it is not showing even the first level calls though I set depth to 6.

Really I am after a runtime sequence/timing diagram (not a design time one) that would show me (...Async) calls and events/callbacks as they occurred.  Am I making sense?

Does such thing exist in VS2010 ?

Thank you.

# February 27, 2011 6:12 AM

marie123 said:

Thanks, however VS2010 Feature Pack 2 seems for x86 only?

It seems IntelliTrace is what I am after and VS2010 seems to be saying it's for x86.  

Should I be configuring VS2010 specifically for x86 builds in order to capture the sequence of events during a particular run?  (I am running on Win7 64bit)

Thanks

# March 9, 2011 4:15 AM

DigiMortal said:

VS2010 is 32bit only, there is no 64bit version of VS2010 although it supports compiling 64bit binaries. IntelliTrace is available only in Ultimate version of Visual Studio 2010.

# March 9, 2011 2:38 PM

marie123 said:

So the IntelliTrace panel said "IntelliTrace debugging is available only for x86 applications. To enable IntelliTrace debugging, change the platform to x86"

If I change the build configuration for the Silverlight project along with all the other DLL projects in the solution to x86  what is the impact?  Does that mean the binary generated will not take advantage of a 64bit architecture platform?

What do you suggest doing? Switching temporarily to x86 rebuild all projects try out the IntelliTrace (I have no idea what it provides yet) see if it uncovers any issues than return to standard "Release" build configuration for deployment?

Thank you.

PS. If you know a good link about managing and using build configurations please point me out.  I certainly need a refresh in this area :)

# March 10, 2011 11:44 PM

marie123 said:

I forgot to mention that the "Release" configuration is set to Platform = "Any CPU" for all projects referenced directly in the solution or for the external ones (DLL references)

Should I switch to Platform = "x86" for the solution referenced projects or everything in order to experiment with how IntelliTrace will help me uncover some of the bugs.

Thanks again.

# March 11, 2011 6:05 AM

Min said:

Did people find where this Generating Sequence Diagram menu item is? I am running VS 2010 Ultimate. I don't see this function either.

Any advice is greatly appreciated.

Min

# October 5, 2011 2:39 PM

serivce said:

AZAoOe Im obliged for the post.Much thanks again. Awesome.

# May 14, 2012 11:32 AM

with said:

Major thankies for the blog. Much obliged.

# May 16, 2012 6:43 PM

Online said:

Thanks again for the post.Much thanks again. Really Great.

# May 16, 2012 9:16 PM

what is quinoa said:

wow, awesome article post. Awesome.

# May 16, 2012 10:04 PM

5 games com said:

Thanks for sharing, this is a fantastic blog post.Thanks Again. Really Cool.

# May 16, 2012 10:17 PM

5paixnidia.gr said:

I think this is a real great article. Much obliged.

# May 16, 2012 11:09 PM

maze games said:

I appreciate you sharing this blog.Much thanks again. Much obliged.

# May 17, 2012 12:03 AM

seeds for survival said:

Wow, great article post.Much thanks again. Great.

# May 17, 2012 12:42 AM

fixedhost reviews said:

Thanks a lot for the article.Thanks Again. Cool.

# May 17, 2012 12:57 AM

seeds for survival said:

This is one awesome article post.Thanks Again. Keep writing.

# May 17, 2012 1:37 AM

seeds for survival said:

wow, awesome article.Thanks Again. Really Cool.

# May 17, 2012 2:34 AM

secretsofdiet.com said:

Really appreciate you sharing this blog article. Cool.

# May 17, 2012 2:50 AM

ecigarettes reviews said:

Muchos Gracias for your article.Really looking forward to read more. Really Cool.

# May 17, 2012 3:49 AM

immagini e disegni tatuaggi said:

Muchos Gracias for your post.Thanks Again. Will read on...

# May 17, 2012 3:55 AM

online beats said:

I truly appreciate this post.Really looking forward to read more. Fantastic.

# May 17, 2012 4:32 AM

atlanta denists said:

Enjoyed every bit of your blog.Thanks Again. Keep writing.

# May 17, 2012 4:52 AM

automated money machine said:

Enjoyed every bit of your article post.Thanks Again.

# May 17, 2012 5:33 AM

www.bubblegame.co said:

Really appreciate you sharing this blog post. Will read on...

# May 17, 2012 5:49 AM

automated money machine said:

Im thankful for the article post.Much thanks again. Really Great.

# May 17, 2012 5:51 AM

columbus said:

Great post.Thanks Again. Much obliged.

# May 17, 2012 6:34 AM

radon testing NH said:

I really enjoy the article.Thanks Again. Much obliged.

# May 17, 2012 9:04 AM

radon testing atlanta GA said:

Looking forward to reading more. Great post.Really looking forward to read more. Much obliged.

# May 17, 2012 11:23 AM

Info said:

Very informative blog post. Want more.

# May 17, 2012 11:25 AM

Baby Gender Predictor said:

Really appreciate you sharing this post.Thanks Again. Awesome.

# May 17, 2012 12:32 PM

urlaub mit hunden am meer said:

I truly appreciate this blog article.Really looking forward to read more. Great.

# May 17, 2012 1:39 PM

make alcohol at home said:

A round of applause for your article post.Much thanks again. Great.

# May 17, 2012 1:41 PM

scotty cameron golo mid said:

Really informative article post.Thanks Again. Keep writing.

# May 17, 2012 2:23 PM

razor electric scooter said:

Thanks-a-mundo for the article post.Much thanks again. Cool.

# May 17, 2012 3:54 PM

bestcreditrepaircompanys.com said:

I really liked your blog article.Thanks Again. Fantastic.

# May 17, 2012 5:24 PM

here said:

Im grateful for the article.Really looking forward to read more. Keep writing.

# May 17, 2012 6:55 PM

www.snakegame.co said:

Really appreciate you sharing this article. Really Great.

# May 17, 2012 10:13 PM

technology reviews said:

Wow, great article.Really looking forward to read more. Fantastic.

# May 17, 2012 11:26 PM

rimu said:

A round of applause for your blog. Awesome.

# May 17, 2012 11:28 PM

exercises for muffin top said:

I loved your blog article. Want more.

# May 18, 2012 12:19 AM

get facebook fans said:

Wow, great blog.Really looking forward to read more. Really Cool.

# May 18, 2012 1:00 AM

make dollars said:

Thanks a lot for the blog post. Want more.

# May 18, 2012 2:33 AM

cake said:

I really enjoy the article post.Thanks Again. Want more.

# May 18, 2012 4:07 AM

yeahgo said:

Thanks again for the blog post.Really looking forward to read more.

# May 18, 2012 5:41 AM

Chiropractor Mississauga said:

Thanks again for the post. Cool.

# May 18, 2012 6:02 AM

led lighting said:

Very good article post.Really looking forward to read more. Great.

# May 18, 2012 6:36 AM

Copiat said:

I appreciate you sharing this blog article.Really looking forward to read more. Much obliged.

# May 18, 2012 7:14 AM

galaxy foamposites said:

Enjoyed every bit of your post. Keep writing.

# May 18, 2012 8:10 AM

article marketing robot coupon said:

Thanks for the blog.Thanks Again. Cool.

# May 18, 2012 12:10 PM

social said:

I loved your article.Much thanks again. Want more.

# May 18, 2012 2:10 PM

Spanx Shapewear said:

Hey, thanks for the blog.Much thanks again. Great.

# May 18, 2012 3:45 PM

tatuaggi angeli said:

I am so grateful for your article.Really looking forward to read more.

# May 18, 2012 4:57 PM

fit exercise to lose weight said:

This is one awesome blog post.Thanks Again. Awesome.

# May 18, 2012 6:32 PM

luwak coffee said:

Great post. Fantastic.

# May 18, 2012 9:45 PM

Bicycle Shop Lake Mary said:

I appreciate you sharing this article post. Really Great.

# May 21, 2012 5:34 AM

Green Tea Weight Loss said:

I appreciate you sharing this blog.Really looking forward to read more. Want more.

# May 21, 2012 5:40 AM

Training Equipment said:

Really informative blog.Really looking forward to read more. Great.

# May 21, 2012 7:15 AM

http://thingstodowhenyourboredz.com said:

Wow, great article post. Keep writing.

# May 21, 2012 7:18 AM

about thai food culture said:

Say, you got a nice blog article. Fantastic.

# May 21, 2012 8:47 AM

spiritual gifts said:

Thanks so much for the blog.Thanks Again. Want more.

# May 21, 2012 8:47 AM

création site internet thonon said:

Thanks-a-mundo for the post.Thanks Again. Much obliged.

# May 21, 2012 11:11 AM

hemorrhoid surgery said:

Wow, great article.Thanks Again. Great.

# May 21, 2012 12:12 PM

Adidas F50 adizero miCoach said:

Say, you got a nice blog post.Thanks Again. Cool.

# May 21, 2012 3:26 PM

sewing machines Albert Lea Minnesota said:

Really enjoyed this blog.Much thanks again. Great.

# May 21, 2012 4:52 PM

pollution said:

wow, awesome article post.Much thanks again. Really Cool.

# May 21, 2012 5:04 PM

brakes Medford Oregon said:

wow, awesome article.Thanks Again. Awesome.

# May 21, 2012 8:06 PM

radon testing Rochester New Hampshire said:

I appreciate you sharing this article post.Much thanks again. Will read on...

# May 21, 2012 9:44 PM

imbuygold said:

Very neat article.Thanks Again. Really Great.

# May 21, 2012 9:57 PM

home inspections Atlanta Georgia said:

I value the blog.Much thanks again. Will read on...

# May 21, 2012 11:24 PM

bathroom taps said:

I appreciate you sharing this article post. Much obliged.

# May 21, 2012 11:37 PM

Oil Change Ottawa Ontario said:

I truly appreciate this article.Much thanks again. Great.

# May 22, 2012 1:03 AM

Ralph Lauren outlet online said:

Muchos Gracias for your post. Keep writing.

# May 22, 2012 1:17 AM

ceiling fans Doylestown Pensylvania said:

Major thanks for the post.Thanks Again. Much obliged.

# May 22, 2012 2:43 AM

wall panelling said:

Major thankies for the article post.Really looking forward to read more. Really Cool.

# May 22, 2012 5:18 AM

Phen375 Reviews said:

Thanks again for the article post.Much thanks again. Great.

# May 22, 2012 6:03 AM

android tablet said:

Enjoyed every bit of your blog.Really looking forward to read more. Awesome.

# May 22, 2012 8:33 AM

debt resources said:

Really enjoyed this blog article.Thanks Again. Great.

# May 22, 2012 9:23 AM

Video Surveillance Systems said:

Very neat article post.Really looking forward to read more. Awesome.

# May 22, 2012 10:14 AM

winning lottery strategies said:

I really enjoy the article post. Cool.

# May 22, 2012 10:51 AM

blogging said:

Fantastic post.Much thanks again. Great.

# May 22, 2012 11:05 AM

swimming pool maintenance said:

I am so grateful for your post. Cool.

# May 22, 2012 11:48 AM

buy music said:

Im thankful for the blog post.Thanks Again. Fantastic.

# May 22, 2012 1:37 PM

link said:

Thanks so much for the blog article.Really looking forward to read more.

# May 22, 2012 2:30 PM

printing said:

Im obliged for the article.Really looking forward to read more. Will read on...

# May 22, 2012 3:10 PM

buy facebook fans said:

Great blog post. Want more.

# May 22, 2012 4:12 PM

underground said:

Really enjoyed this article post.Really looking forward to read more. Cool.

# May 22, 2012 4:49 PM

in said:

Awesome blog post.Much thanks again. Keep writing.

# May 22, 2012 6:27 PM

halkidiki said:

Say, you got a nice post.Much thanks again.

# May 22, 2012 6:36 PM

official site said:

Really informative blog article.Really looking forward to read more. Will read on...

# May 22, 2012 9:44 PM

yorkshire said:

Very informative article.Really looking forward to read more. Cool.

# May 23, 2012 1:06 AM

Concur said:

I loved your blog post.Much thanks again. Fantastic.

# May 23, 2012 2:48 AM

proxy site said:

Looking forward to reading more. Great blog article.Much thanks again. Great.

# May 23, 2012 3:42 AM

Hollywood said:

Fantastic blog post. Cool.

# May 23, 2012 4:28 AM

proxies said:

Thanks again for the blog post. Great.

# May 23, 2012 5:43 AM

back pain mississauga said:

I really enjoy the blog post.Thanks Again. Great.

# May 23, 2012 5:49 AM

Remedies for erectile dysfunction said:

I really liked your post.

# May 23, 2012 8:08 AM

buy said:

Fantastic blog article. Great.

# May 23, 2012 9:32 AM

Htc Skal said:

Really informative blog post. Awesome.

# May 23, 2012 9:50 AM

mypadmedia said:

This is one awesome article post.Thanks Again. Want more.

# May 23, 2012 10:25 AM

for said:

Thanks-a-mundo for the post.Really looking forward to read more. Want more.

# May 23, 2012 11:12 AM

Hong Kong Company registration said:

Awesome article post.Much thanks again. Really Cool.

# May 23, 2012 12:07 PM

rv said:

wow, awesome post.Much thanks again. Want more.

# May 23, 2012 1:50 PM

home said:

Really appreciate you sharing this article post.Much thanks again. Fantastic.

# May 23, 2012 2:56 PM

sprachaufenthalt said:

Im grateful for the blog.Much thanks again. Keep writing.

# May 23, 2012 4:09 PM

buy software cheap said:

Fantastic blog article.Really looking forward to read more. Will read on...

# May 23, 2012 5:48 PM

dating buddies said:

Enjoyed every bit of your post. Great.

# May 23, 2012 6:54 PM

surt10000xlt said:

Really enjoyed this article. Much obliged.

# May 23, 2012 6:58 PM

5 dollar accessories said:

I value the blog article.Really looking forward to read more. Really Cool.

# May 23, 2012 7:26 PM

wedding said:

Really enjoyed this article post.Really looking forward to read more. Cool.

# May 23, 2012 8:01 PM

Docking Stations said:

Very informative blog article.Thanks Again. Great.

# May 23, 2012 9:06 PM

francja zdjęcia said:

Thanks for the article. Want more.

# May 23, 2012 10:45 PM

robe femme said:

Great, thanks for sharing this blog.Really looking forward to read more.

# May 24, 2012 1:12 AM

marijuana said:

This is one awesome article. Will read on...

# May 24, 2012 1:51 AM

IEEC said:

Wow, great blog article.Thanks Again. Want more.

# May 24, 2012 4:23 AM

Ex Proof Blog said:

I loved your blog article.Thanks Again. Much obliged.

# May 24, 2012 6:17 AM

canadian business said:

Really informative article.Really looking forward to read more. Cool.

# May 24, 2012 7:20 AM

hiv positive dating said:

Awesome blog post.Thanks Again. Really Cool.

# May 24, 2012 9:40 AM

time said:

Thanks-a-mundo for the blog post.Really looking forward to read more. Keep writing.

# May 24, 2012 10:22 AM

computer said:

I loved your blog article. Will read on...

# May 24, 2012 10:56 AM

Mystery Books said:

Thanks-a-mundo for the article post. Really Cool.

# May 24, 2012 11:22 AM

computer said:

Really appreciate you sharing this article.Much thanks again. Keep writing.

# May 24, 2012 12:42 PM

repair said:

Thanks for sharing, this is a fantastic article.Really looking forward to read more. Much obliged.

# May 24, 2012 2:27 PM

canadian blog said:

wow, awesome blog.Much thanks again. Really Great.

# May 24, 2012 4:13 PM

software for editing said:

Awesome article post.Much thanks again. Fantastic.

# May 24, 2012 6:13 PM

investing said:

Major thankies for the blog post. Much obliged.

# May 24, 2012 7:49 PM

24 said:

Thanks for the article post.

# May 24, 2012 9:38 PM

investing said:

Thanks-a-mundo for the article post.Thanks Again. Want more.

# May 24, 2012 11:20 PM

Rentals said:

I really enjoy the article.Really looking forward to read more. Cool.

# May 24, 2012 11:20 PM

bed said:

Wow, great post.Really looking forward to read more. Keep writing.

# May 25, 2012 1:03 AM

Greencard said:

I appreciate you sharing this article post.Thanks Again. Much obliged.

# May 25, 2012 2:46 AM

oil said:

I really liked your blog article.Much thanks again. Awesome.

# May 25, 2012 6:22 AM

PERU TOURS said:

Im grateful for the blog post.Thanks Again. Keep writing.

# May 25, 2012 8:09 AM

Edmonton Business Directory said:

Im grateful for the post.Really looking forward to read more. Really Cool.

# May 25, 2012 9:56 AM

kitchens kent said:

Fantastic blog article. Will read on...

# May 25, 2012 10:53 AM

Drive said:

Thanks again for the blog post.Thanks Again. Want more.

# May 25, 2012 1:29 PM

assistenza hardware said:

Really enjoyed this post.Really looking forward to read more. Fantastic.

# May 25, 2012 3:18 PM

calvin klein sale said:

I truly appreciate this article post.Much thanks again. Great.

# May 25, 2012 10:32 PM

rabbits toy said:

Thanks again for the article.Thanks Again. Cool.

# May 26, 2012 12:21 AM

perder peso said:

Thanks-a-mundo for the post.Thanks Again. Really Cool.

# May 26, 2012 7:57 AM

Florida said:

I really like and appreciate your blog article.Much thanks again. Fantastic.

# May 26, 2012 9:43 AM

data recovery knutsford said:

Really enjoyed this blog post.Thanks Again. Great.

# May 26, 2012 11:29 AM

running guide for beginners said:

Very neat blog post.Really looking forward to read more. Awesome.

# May 26, 2012 1:14 PM

website said:

I really enjoy the article. Awesome.

# May 26, 2012 3:00 PM

top 10 2011 these antivirus said:

Hey, thanks for the blog article.Thanks Again. Will read on...

# May 26, 2012 4:16 PM

registry cleaner windows 7 said:

Wow, great blog article. Much obliged.

# May 26, 2012 5:42 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)