Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Generate Code from UML 1

Status
Not open for further replies.

jfrost10

Programmer
Jun 3, 2001
2,004
CA
Hey gang,

My understanding is that Visio is supposed to have some ability to auto-generate code from class diagrams. I've been banging my head around trying to get this to work. Could someone please point me in the right direction?

Thanks,

Jack
 
I have never found the key to generating code using Visio. You probably need to import the model the into Microsoft Visual C++ or Visual Basic... if those tools allow it. I only use the UML in VISIO for customer communications because of its graphics abilities. I use Rational Rose for all other UML development efforts, unfortunately I have not been successful in exporting/importing between the two tools (Visio/Rational Rose)
 
I'm using VisualStudio.NEt Enterprise though, and it claims that Visio (which also comes bundled with vs.net) is supposed to generate skeleton code based on uml diagrams, so it can be done.

Just doesn't say anywhere how to do it!
;)

Jack
 
It's there guys, I've done it in Enterprise Architect. I think it's under something like Model/Generate. You set up language etc in Options.

Best regards & good luck! Steve Barnes
Software Architect

Brisbane, Australia
 
If you go to Project>Visio UML, it will let you reverse engineer your code to a uml diagram, but there isn't anything there for creating code.

And in Visio, if you go to the model menu, all it does is allow you to view all the models for one project, it doesn't have a generate option.

sigh...you'd think that functionality like this would be explained SOMEWHERE!

Jack
 
UML -> Code -> Generate... ;-)

What is the problem?
Are you sure your using the UML Add-on? bitRAKE :eek:)
Please, reply to board
 
BitRake: Thats the problem:

In Visio there is no option to generate code

In vs.net, I can only have the option of reverse engineering under the UML option, not generate code. And no, I don't HAVE a UML add on (unless I'm looking in the wrong spot)

Jack
 
Hey guys,

Just to let you know, I did get it working. It was my bad: I was using visio professional, and didn't realize that I needed to install the enterprise version that came with vs.net. its all good now.

Thanks

jack
 
Jack,

I have VS.net enterprise developer and I don't see Visio. What version do you have? I have installed Visio Pro and vs.net and my visio does not have the "code" and "generate" menu selections on the UML drop down menu.

Steve
 
Hey Steve,

If you look in your .NET directory, there should be a Visio folder in there with a setup program. you need to run this to upgrade your visio professional to enterprise. once you do this, you'll have the UML to code functionality.

Let me know if it works for ya

D'Arcy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top