• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 398
  • Last Modified:

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
0
mrraphael
Asked:
mrraphael
  • 2
  • 2
1 Solution
 
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
0
 
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!
0
 
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
0
 
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
0
 
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
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now