has anyone experienced problems generating vb class libraries from Visio Enterprise Architect UML Models? the namespace imports statements are being generated after the namespace declaration like so (similar to c# usage):
Namespace MyNamespace.MySubsystem
Imports System.ComponentModel
Public Class MyClass
Inherits Component
End Class
End Namespace
another snag: how can you specify the generated vb class library to not have a default root namespace named after the project name (i.e. UML Subsystem name)
I have used Visio to create a starting point for class libraries - didnt really see any problems with namespaces and what not. I don't use VB.NET however, only C#. For that language, it seemed quite adequate, at least for getting a jump start on a project.
thanks for the reply - i was starting to think no one was using the UML (gasp) or visio Enterprise Architect code generation. its very powerful if you put the time in during design. it slashes development time drastically, enforces the architect's vision, and
allows for true iterative development. for those of you who are just digging into this capability, i suggest: -reverse engineering some code you already have -reading a UML book (of course) -trying to forward engineer (from scratch) the project you reverse
engineered -gaining fine control over code generation functionality (single class vs. project vs. solution) -use c# class libraries (there are syntax bugs in generated vb code) -separate your project into several assemblies (along namespace lines - like the
.net framework)
A good book that deals with the topic directly is: Professional UML With Visual Studio .NET: Unmasking Visio for Enterprise Architects Wrox / ISBN 1-86100-795-7 Not a very easy book to find unfortunately, but it is a pretty good book IMO and really helps with
using Visio code generation, and is even a good practical primer for folks new to UML. There is a sample chapter free on the Wrox website... chapter 4, which is where the code generation from Visio is discussed most heavily.
I wanted to start looking into that, but I assumed it had the same problem all UML code generating tools suffered from, they make it difficult to change your code. Does visio allow you to modify code and sync the UML up with code changes?
Don Kiely, MCP, MCSD
In the Last Frontier, Interior Alaska
Please post questions and replies to the forum! And remember to MARK AS ANSWER when someone definitively answers a question or resolves a problem!
phishstick40
Member
600 Points
120 Posts
Visio Code Generation
Jul 10, 2003 01:00 PM|LINK
Namespace MyNamespace.MySubsystem Imports System.ComponentModel Public Class MyClass Inherits Component End Class End Namespacegenerating c# class libraries works fine.phishstick40
Member
600 Points
120 Posts
Re: Visio Code Generation
Jul 10, 2003 01:02 PM|LINK
phishstick40
Member
600 Points
120 Posts
Re: Visio Code Generation
Jul 11, 2003 06:24 PM|LINK
phishstick40
Member
600 Points
120 Posts
Re: Visio Code Generation
Jul 17, 2003 12:36 PM|LINK
krome
Member
190 Points
38 Posts
Re: Visio Code Generation
Jul 17, 2003 03:20 PM|LINK
MCSD, MCDBA, MCAD, CIC
phishstick40
Member
600 Points
120 Posts
Re: Visio Code Generation
Jul 17, 2003 04:59 PM|LINK
krome
Member
190 Points
38 Posts
Re: Visio Code Generation
Jul 17, 2003 09:35 PM|LINK
MCSD, MCDBA, MCAD, CIC
SoulOfRealit...
Participant
775 Points
155 Posts
Re: Visio Code Generation
Jul 17, 2003 10:40 PM|LINK
donkiely
All-Star
15929 Points
2518 Posts
ASPInsiders
Moderator
MVP
Re: Visio Code Generation
Jul 17, 2003 10:41 PM|LINK
In the Last Frontier, Interior Alaska
Please post questions and replies to the forum! And remember to MARK AS ANSWER when someone definitively answers a question or resolves a problem!
Emmet
Member
15 Points
3 Posts
Re: Visio Code Generation
Jul 17, 2003 10:50 PM|LINK