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

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
mrraphaelAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bruintjeCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
daniel_ballaCommented:
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!
bruintjeCommented:
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
mrraphaelAuthor 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
mrraphaelAuthor 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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.