57

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?

Paul Croarkin
  • 14,496
  • 14
  • 79
  • 118
Toby
  • 3,815
  • 14
  • 51
  • 67

9 Answers9

76

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.

Uffe
  • 10,396
  • 1
  • 33
  • 40
  • 7
    Ah great, this actually helps a lot - I scaled the Bitmap export to 400% and defined 512MB of memory for hte image conversion. Now I can save the diagrams in a png file with quite a decent quality. Problem is that my word now fails at the pdf export ( loses quality ) but okay thats not part of this particular problem. Thank you!! – Toby Jun 08 '12 at 08:30
  • 30
    Ctrl + T is the short-cut for saving a diagram as an image file – Adrian K Sep 02 '14 at 22:28
  • 3
    EA 13: Start -> Preferences -> Diagram – Eric Eskildsen Apr 25 '19 at 14:41
28

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.

Mihai Iorga
  • 39,330
  • 16
  • 106
  • 107
Vladan
  • 297
  • 3
  • 2
  • 4
    sometimes large class diagrams are cutoff using this approach. – O.O Jul 28 '14 at 15:15
  • I already had finished my question here on SO before finding this. Well, I was searching for use case export, not uml. This works nicely, many thanks! BTW, you can also select parts of the diagram, this works just as well! – Andreas Reiff Sep 02 '15 at 07:41
  • 1
    As of EA 12.1, this puts a "fake" metafile on the clipboard. It's actually a bad-quality JPG wrapped in a metafile. This is also what happens if you save as EMF or WMF. Also, the image has cleartype baked into it, so it is no good for printing. – Moby Disk Jun 15 '16 at 16:51
12

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

  1. Before you start, go into EA and Tools->Options (or hit Ctrl-F9).
  2. Ensure that the General properties page is selected.
  3. Check 'Clipboard' is set to 'Metafile' (if it is set to Bitmap, you will only ever get a bitmap produced, even in Powerpoint).

Steps

  1. Open your EA model to be exported.
  2. Open Powerpoint and clear the default bounding boxes leaving a blank slide.
  3. Open Word and locate the point in your document where you want to paste the model.
  4. Back to EA, open your model window and hit Ctrl-B (Diagram->Paste Image to Clipboard)
  5. Go into Powerpoint and hit Ctrl-V to paste.
  6. Resize the model to fit the slide.
  7. Hit Ctrl A then Ctrl C to ensure everything is copied to the clipboard.
  8. 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.
Shrikant Havale
  • 1,250
  • 1
  • 16
  • 36
Joseph Rose
  • 121
  • 1
  • 2
  • 2
    As of EA 21.1, this puts a "fake" metafile on the clipboard. It's actually a bad-quality JPG wrapped in a metafile. This is also what happens if you save as EMF or WMF. – Moby Disk Jun 15 '16 at 16:51
  • I meant 12.1, sorry. – Moby Disk Jun 15 '16 at 16:53
  • 1
    I'm using EA 14. I just tested to paste it directly into word and I can zoom it without loosing quality, so I guess now the metafile gets pasted into word as well instead of the bmp. – AdriRomas Apr 16 '20 at 13:15
2

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.

Yan
  • 1,569
  • 18
  • 22
1

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

Sinisha Mihajlovski
  • 1,811
  • 1
  • 20
  • 34
1

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

1

Change your diagram themes, go to tools->diagram->Themes and change diagram themes to "blueprint" and go to file->Print to PDF

cbuchart
  • 10,847
  • 9
  • 53
  • 93
Latief Anwar
  • 1,833
  • 17
  • 27
0

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.

QBrute
  • 4,405
  • 6
  • 34
  • 40
-1

Copy the diagram Ctrl + A, Ctrl + C and paste it into Microsoft Paint and then save it as jpg/png file.

Agilanbu
  • 2,747
  • 2
  • 28
  • 33
Amit Kumar
  • 49
  • 2