Which are the most useful resources to learn to draw the UML class diagram in Visio? - visio

I am stuck at properly aligning the generalization arrow between the classes. I could not make them appear as in the UML books.

Visio UML stencils are not very good and is very frustrating to work with them. Have a look at http://softwarestencils.com/uml/index.html, there are some very nice, free stencil updates for Visio UML 2.0. It takes very little time to get used to them. After I used them I never looked back.

UML Model Diagrams - Visio - Microsoft Office Online
One note. If you want UML diagramm looks like classic book examples you should use Rational Rose instead of Visio.

Related

Adding combined fragments in UML Designer for Eclipse

I'm using the latest version of UML Designer (7.1) for Eclipse. I have to create a Sequence Diagram, but in the palettes there are no combined Fragments. All I have are actors and sync/async messages. In some tutorials I've seen seen palettes with comb. fragments.. But I don't have them. How is it possible?
The combined fragments are not implemented in UML Designer and there is no plan to implement them at the moment.
As UML Designer is based on Eclipse Sirius, it is possible to do it and maybe you saw the same kind of features in another Sirius based modeler.
If you are interested in sponsoring us to implement this feature do not hesitate to comment the existing issue :
https://github.com/ObeoNetwork/UML-Designer/issues/175

Generate full class diagram using GraphViz and Doxygen

I'm currently working on my internship, and for the company's sake I decided to just go ahead on the programming work. For my current internship that seemed to fit better than to create all kinds of diagrams no one gets or uses.
Now I ran into a problem though. 4 weeks of internship and 50 java-classes later my school decided they want to see a class diagram. I've already got doxygen set up with GraphViz to generate partial class diagrams, with the focus on only one of the classes and it's associations. But what I wonder is, is it possible to generate one class diagram containing all relations from all classes? Or am I gonna have to try to convince my school that this way the class diagrams have better readability?
The short answer is that this is not possible. Doxygen parses the code and includes only classes in the diagrams which are in any direct or indirect relationship with the documented class.
A general class diagram containing all classes and their associations is not generated by doxygen.
Play araound with the diagram options of doxygen to see with graphs make sense for you (either using the "doxywizard" [Wizard tab -> Diagrams or Expert tab -> Dot] or as I prefer editing directly the doxyfile).
I don't believe that a class diagram with more than 50 classes makes sense, because this would result in a hard to read diagram which is more confusing than helping. (Generally it might be better to organize your code in packages which you might document using the grouping feature of doxygen. In that case you could use the collaboration diagrams to show more high level relations between the packages.)
Another approach might be using a UML/CASE tool to generate UML diagrams from your code (e.g. Enterprise Architect from Sparx Systems, you could import your code and let the tool generate class diagrams out of it). You could include such generated graphs by exporting that graphs as picures and including that pictures in your doxygen generated documentation using the \image tag.
I hope this helps.

Switching from Rhapsody to Eclipse (Papyrus) - UML model conversion?

Our team has been using Rhapsody for developing UML models and c++ code for 10+ years, and we would like to switch to Eclipse and use Papyrus for UML modeling.
We have compatibility concerns: would the UML models (all class diagrams, state machines etc) created in Rhapsody be all portable to Papyrus/Eclipse easily? Rhapsody can export UML models into XMI files (UML 2.1, 2.2, 2.3 standards). My questions is: is Papyrus able to reconstruct diagrams from XMI files
If not, are there better alternative UML plugins that work in Eclipse?
The XMI file exported by Rhapsody contains only meta data of the models. Is there a quick way to port the entire project from Rhapsody into Eclipse? Anybody experienced the similar?
Your answers will be much appreciated.
First, I must mention that I am directly involved with Papyrus, especially with the brand new Papyrus for Real Time project, at Eclipse.
First to set expectations... Moving diagrams between modeling tools has always been an exercise in frustration... There have been "standards" over the years (e.g., OMG's XMI-DI), but none seem to have been fully successful and all have necessitated a manual review. Note that I have not tried with the latest version of UML (2.5).
Now the model semantics, however, have a tendency to be more portable, especially with more recent versions of UML. I am not sure which version Rhapsody pretends to support, so it would be difficult to comment further.
With the version of Papyrus that is currently in development (with a scheduled June 2015 release), the notion of "canonical" diagram has been added. This provides for automatic creation and update of some diagrams under certain condition. for example, many behaviour diagrams, such sequence diagrams and some structure diagram, such as composite structure, can be canonical and generated from the semantic model. However, layout would still need to be adjusted. Other diagrams, such as class diagrams, would have to be manually re-created.
As was mentioned in the comment to your question, trying it out would give you the best indication of how much work is involved.
I am interested in this topic and I did a simple research on it: in fact a connector between RSA and Ppayrus is already open source https://www.eclipse.org/forums/index.php/t/835114/ it could be usefull to take a look at it and implement the same for Rhapsody.
I know that the Rhapsody XMI export did not export the graphical elements, you should probably then export them in a serialized format and mapping htem to papyrus diagram element.
other interested work but seems not to be free : modelbus https://www.modelbus.org/en/rhapsody.html which implement connectors with Papyrus EA and Rhapsody : could be also interesting to look at.
I am interested in your feedback if you did not let it down and do achive the mapping :)

How to create an object diagram with Netbeans 6.7.1 and UML Editor?

I haven't found an apropriate diagram type to make an object diagram. I'd like to visualize my object graphs in the application, rather than class inheritances. Currently I do that with "class diagram" but of course that's not really fine because it looks like they all inherit from eachother. Are there more diagram types for installing?
Not yet. They currently support only a few:
UML Diagrams
The NetBeans UML plugins presently supports the following UML diagrams: Activity diagram, Class diagram, Sequence diagram, State diagram, and Use Case diagram. [http://www.netbeans.org/features/uml/]
As of Netbeans 6.5 the UML plugin has ceased feature development.
The good news is that they are partnering with Visual Paradigm to provide complete UML 2.0 based functionality
Read about this in the roadmap

Where can I find visio shapes for software development?

Anyone have any ideas on where to get a really nice collection of visio shapes, e.g for the following purposes:
network diagrams
shapes to show solution deployments
any other fancy looking diagrams for software development?
Pavel Hruby has some nice stencils for UML and SysML on his site. I use the UML stencils all the time, because they are a lot easier to use than the ones provided by visio.
There is a nice bunch of visio shapes for gui mockups here.
(1)
http://www.microsoft.com/downloads/details.aspx?FamilyID=6297CF81-C071-4BEA-BD9D-FDE692536E5A&displaylang=f&displaylang=en
The above URL now redirects to:
https://www.microsoft.com/en-us/download/details.aspx?id=25110
The above URLS (at the time of writing) take me to a page titled:
"Software and Database Shapes for Microsoft Visio"
Below is another option. Some are "for pay".
(2)
http://www.visiocafe.com/microsoft.htm