We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Is it possible to generate C# code from an object model diagram created in Visio?

mrraphael
mrraphael asked
on
Medium Priority
467 Views
Last Modified: 2010-04-16
Hi Experts,

My question is twofold:

1. Is it possible to generate C# code from an object model diagram created in Visio, and if so, then how is this done? I remember using Rational Rose when at university to generate C++ code based on a class diagram. I wondered if this was also possible in Visio (which version).

2. Does anybody know of any good websites / book recommendations for helping to conceptualise and model RAD development projects in C# (I am an Excel developer to give you a bit of background).
 
Many thanks.

Raphael
Comment
Watch Question

Freelance
Top Expert 2006
Commented:
Hello mrraphael,

just to answer only the first part, it is possible and one of the key points of using Visio to model your application
----------
source: http://www.dotnetjunkies.com/Article/74851895-C4D4-4F11-956D-A27D849E4A62.dcik
source: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvsent/html/vsent_enterprisetemplatesbk_part3.asp

and the other way too
source: http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=375F1EEA-C60C-4CBE-AC12-1335899C6566
----------

hope this helps a bit
bruintje

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Hi mrraphael,
> 1. Is it possible to generate C# code from an object model diagram
> created in Visio, and if so, then how is this done? I remember using
> Rational Rose when at university to generate C++ code based on a class
> diagram. I wondered if this was also possible in Visio (which version).
Yes, it does that for you. I think you will need the Visio for Enterprise Architects version.
It is really easy, you have the generate code item in the menu.

Cheers!
Brian MulderFreelance
Top Expert 2006

Commented:
for the second part i would first read up on some book excerpts and online articles to get a feel for a book or site and then buy something if it clicks, some things like
source: http://zone.ni.com/devzone/conceptd.nsf/webmain/DCAF6FDB7A3BC02486256D4F00721675

and also look into an IDE and language intro like this to get something running in a short while
source: http://msdn.microsoft.com/vstudio/express/visualCsharp/default.aspx

Author

Commented:
Hi,

Thanks for your reply. I have looked at the articles and althought they are useful, they are not exactly what I want. My issue is that it is pefectly ok to conceptualise an object model when thinking in real world terms (vehicle > car > engine), but in practical terms, when creating a full object model that will show all the development to be done for a project, much of the time the majority of the business logic development cannot be thought of in real world terms (as most objects are abstarct).

ll explain - a program that takes an array of data, sorts it and then outputs it and formats it, say for example into Excel, cannot be though in real world object ways as most of what is going on is processing. You may for example have a format object, and an array object, with methods such as sort etc, but what I am looking for is a book or article that will help in creating a class / object diagram where many of the classes and objects will be abstract, eg. array object, format object etc.

I hope this makes sense and thank you again for your replies.

Raphael

Author

Commented:
Hello,

Please could you tell me the version of Visio I need to be able to create C# code from my object model. I have dowloaded Visio SDK but this does not seem to help. I have Visio 2002 Professional - can I do it in this? If so then please can someone help. The help files are absolutuely terrible and also very confusing as they refer to different veriosn of Visio.

Many thanks.

Raphael
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.