Is it possible for Visio to automatically layout a UML diagram? - uml

Is there a way to just lay everything out in the "best" possible manner, using the entire drawing area available? Or do I have to position the various elements myself?

You can try using the "Lay Out Shapes" dialog in Visio 2003. Go to the Shape menu and click on the "Lay Out Shapes" menu item. It can have some interesting results, but it might help if you play around with it.

yes it is possible.
Check out this
You can import your database into visio and it will create diagrams from it..

Related

How to set a class to abstract using Microsoft Visio

I'm using Microsoft Visio to draw my UML Diagrams.
More specifically the "UML Class" package as shown below
I want to define my class as Abstract and I don't find any "Properties tab" or somth to manage any class options.
Is there any way to achieve this another way than simply set the class name as Italic in the text format option ?
EDIT
The solution provided here doesn't seem to fit with newer version of Visio as long as i can't find a "Properties" tab.
MS Visio is not the greatest tool to create UML models. Of course it lets you draw nice diagrams, especially with the right packages, but what you get is not really related to each other.
Getting back to your question, there are many different possibilities depending on specific UML package you use. If you don't have anything special and you can't find some "Abstract" or IsAbstract" property of the class, you can always just change the text format to Italic.
All the "smarts" (for want of a better name) have been removed from the UML shapes in the later versions of Visio, 2013 onwards as far as I know. There is a "Properties" attribute to the Class shape in Visio 2010 but not in Visio 2016. The shapes are now just plain and simple.

Show grid in Papyrus class diagram

I am looking for a grid / raster in Papyrus Neon, so I am able to align the components in my UML class diagram more precisely.
Is there such an option available? If so, where do I find it?
e.g. in ArgoUML such a grid is shown by default:
My research with Google was not successful either.
The easiest way to find properties like that is to use the search box at the top of the Properties drop-down menu. Type "grid" in there ant you will see that you can set diagrams that support grids an set your desired grid for each. Note tha the way to do this will change change slightly with Papyrus Oxygen, but the capability will remain.
Note that in the diagrams's toolbar, there are also actions to align model element representations (vertically/horizontally/spaced equally) or to make there sizes the same.

UMLDesigner – Diagram auto layout

I tried to use UMLDesigner to draw my project related diagrams. I see there is a Arrange functionality that can automatically layout diagram elements and links to save some manual work. But when i used it in my Activity diagrams it designed it upside down.
Here is an example. I created following simple activity diagram.
And here is how auto layout result for the same model looks like: auto layout.
The initial node is at the bottom and the final nodes are on top. But i want it the other way - to start at the top and end at the bottom. Is there a way to configure this?
I tried pinning starting and final nodes but it just made a mess after arranging the rest automatically. I searched the settings but couldn't find anything. I use UML Designer Version 7.1.0.
Thanks ahead for any help.
I am sorry there is no way from the preferences to change this behaviour.
This is because I never provide a specific layout for this diagram. Please, fill an issue in the bug tracker and it will be fixed for the next version of UML Designer as it is really easy to fix: https://github.com/ObeoNetwork/UML-Designer/issues.
Thanks for your feedback!

StarUML do not display diagrams

I am using the latest starUML BETA and I'm having these problems.
I have created 2 sequence diagrams and save it as a .mdj file.
After a few days, I wanted to continue working on the diagrams. But when I opened the file, the diagrams I was working on was not displayed. There is also nothing under the Working Diagrams area. But the Explorer section showed the items I have used in creating my diagrams.
I don't want to make my diagrams from scratch again. Is there a way that the diagrams will be displayed again?
I had exactly the same problem. Solved by DOUBLE clicking on Activity Diagram.
To open the diagram, you should first click on the sequence diagram on the Explorer area on the right of the screen and then you'll see that your .mdj file is loaded.
As a reference: http://docs.staruml.io/en/latest/editing-elements-and-diagrams.html#open-diagram

How to change the shape of a button in visual c++?

Is there an easy way to change the shape of a button in a form?
There could be other ways, but if you are not using WPF, you can use Images for buttons.
If you are using WPF, there are lots of options you can explore.
This might be a bit old, but may point the way, look at ownerdraw properties and styles and messages. http://msdn.microsoft.com/en-us/library/ms364048(v=vs.80).aspx
As an aside why would you want to change the shape of the button. Bear in mind your users, they more than likely don't like change.
You are referring to Ownerdraw buttons. The following links shall help you.
http://www.codeproject.com/KB/buttons/roundbuttons.aspx
how to create a round/circular button in win32 API using visual c++

Resources