Convert StarUML diagram to Visio drawing - uml

I have a class diagram which i created using Star Uml but now the requirement is to port it to MS Visio . Is it possible to port the .uml to a .vsd with the xml information available?
Thanks in advance.

Exporting as a Windows Metafile (WMF) and Enhanced Windows Metafile (EMF) only imports to Visio as an image.
I understood that the purpose of exporting from StarUML and importing into Visio was being able to manipulate in Visio each one of the objects created in StarUML (e.g. classes).
I haven't found a solution for doing this.

Both programs support export/import of Windows Metafile (WMF) and Enhanced Windows Metafile (EMF). So you may try those.

Exporting from StarUML as a Windows Metafile (WMF) or Enhanced Windows Metafile (EMF) and then import to Visio as a grouped shape.
It might look as an image at first look, but actually its a grouped shape. In order to edit, all you need to do is Right click on the grouped shape and "Ungroup".

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.

Having Trouble Locating Underlying Document Interface for VS AddIn

When opening a new coding document in Visual Studio I would like add a watermark to the document/page. I have found the interfaces to interact with document's text selection object.
http://msdn.microsoft.com/en-us/library/vstudio/envdte.document.aspx
I've discovered interfaces for font and color of text.
My question is can anyone point me in the right direction for interfacing with the underlying editor so I can add a watermark?
You can add an adornment layer with your watermark image. See Editor Extension Points (Adornments) documentation and VSEditorBackgroundChangerExtension source code.

How to snap to grid in StarUML?

I'm using StarUML to make some diagrams and have the grid enabled but I can't find any option to make objects snap to grid...
Does anyone have a solution?
Thank you
The only way I see to make that happens is under "Tools -> Options". Set the Grid width and Grid height to both be 10. Then you will get the snap to grid behavior your are looking for. The grid points on the diagram are set to be 10x10 squares, so if you set your Grid width/height to 10 and 10, when you move objects they only move in units of 10, hence making it basically work like snap to grid. Hope this works for you!
I had the same need but the snap to grid wasn't that user-friendly. I figured out I could import my staruml project in modern web-based UML tools (hit "import staruml uml" in gg, some tools convert StarUML to UML2 diagrams online) with convenient diagramming capabilities such as fine-grained snap-to-grid.
I know there's a new StarUML2 beta but it still has to be installed on your desktop and it doesn't seem to be compatible with StarUML1 (UML 1.3) files. HTH
I am currently on version 2.7.0 on the Mac and the configuration of the grid work around seems to be missing nowadays.
Vote for it to return here: https://staruml.uservoice.com/forums/245359-feature-request/suggestions/7841877-snap-to-grid

Enterprise Architect: Export UML Diagrams in high quality

With Enterprise Architect (Version 9.2), I created some Class and Sequence UML Diagrams. Now I need those Diagrams in a Word document.
My first approach was to just cut them out with the Windows 7 Snipping Tool and paste them into the document. But for printing purposes the quality was way too poor.
The second approach was to "Save them as Images" as offered in Enterprise Architect. But with this, the quality was even worse.
The third way was to export them into a pdf file. With this the quality was quite decent and I could import those pdfs into Inkscape and then convert them into *.png files to import them to word. The problem is, that Enterprise Architect kinda fails with the fonts. Meaning the picture itself has high-quality, but it tries to convert the font of the classes and then I have some spaces between letters where there should be none.
So long story short - is there a way to export my UML Diagrams from Enterprise Architect to a common picture format like .png or .tiff, while retaining decent quality?
As I'm sure you're already aware, you can save a diagram as an image in several formats, including PNG but not TIFF.
The quality of the images can be controlled in the options (Tools - Options), "Diagram" tab.
The "Image Memory Limit" controls the amount of memory the image conversion process is allowed; increasing this should improve the quality of large diagrams.
"Scale Saved Bitmaps to" allows you to set a higher resolution for the images.
I haven't checked whether these also affect the copy-to-clipboard function (in the Diagram menu or CTRL+B), which is the way I usually copy diagrams into documents.
To have diagrams in word there is very easy way.
Simply, open diagram in ea then select all with CTRL+A, then copy CTRL+C, go in word and just do paste CTRL+V. Easy and perfect quality.
For some reason, when you use Ctrl-B to export a Sparx EA model to MS Word, you get a bitmap copied to the clipboard, but when you paste into Powerpoint, you get an Enhanced Metafile. This is vector graphics which can be zoomed into etc. with no loss of detail.
Prep
Before you start, go into EA and Tools->Options (or hit Ctrl-F9).
Ensure that the General properties page is selected.
Check 'Clipboard' is set to 'Metafile' (if it is set to Bitmap, you will
only ever get a bitmap produced, even in Powerpoint).
Steps
Open your EA model to be exported.
Open Powerpoint and clear the default bounding boxes leaving a blank slide.
Open Word and locate the point in your document where you want to paste the model.
Back to EA, open your model window and hit Ctrl-B (Diagram->Paste Image to Clipboard)
Go into Powerpoint and hit Ctrl-V to paste.
Resize the model to fit the slide.
Hit Ctrl A then Ctrl C to ensure everything is copied to the clipboard.
Go into Word and hit Ctrl-V to paste - you should now have an EA model in EMF metafile format, not a bitmap. Document reviewers can now zoom in and see the full detail in the model.
Do the following:
PACKAGE->Documetation->Publish as HTML
Create new folder for output and set the path in"Output" field.
-> Press Generate
Goto ..[your folder]\EARoot, the files named EA*.[png|gif] are your diagram
images in original resolution.
Myself, I used ctrl+P and used my pdf converter for printing.
- Before this, I setup the page size in the Diagram properties -> Diagram -> Page Setup -> Advanced.
- I set "Scale to one page" then i click "Page Setup", choose the appropriate page size and orientation.
- My PDF converter is PDFCreator: http://download.cnet.com/PDFCreator/3000-2064_4-10558866.html
While I see that you seem to have this resolved (happy to hear), I'll post this in case others don't have any luck with the above.
I've always just selected (ctrl+A for the whole diagram) and pasted in to Word/PPT/Outlook and the diagrams were converted automatically to nice PNG scalable images (without ever changing the memory/quality settings).
But on a recent project it seems that when I tried to do the same the quality was very poor/fuzzy and the text was sort of squashed.
Are you by chance using Remote Desktop to connect to a machine that is Running Sparx EA? There is another thread floating around somewhere (sorry don't have the link) where others were having this similar trouble when connected via RDP in Full screen display mode. I was able to export good quality from a non-RDP session, or I think if I connected via RDP but not in Full-Screen mode it owuld export in the quality I'm used to.
Hope this helps anyone else with a similar issue
Change your diagram themes, go to tools->diagram->Themes and change diagram themes to "blueprint" and go to file->Print to PDF
With Version 13 (probably older versions as well) you can press Ctrl-T to open the dialog "Save as Image". There you can choose between .png, .bmp, .jpeg, .tga, .gif, .wmf and .emf.
Copy the diagram Ctrl + A, Ctrl + C and paste it into Microsoft Paint and then save it as jpg/png file.

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

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..

Resources