Tools for diagramming in Linux

No readers like this yet.
Open lightbulbs.

Opensource.com

If you're a big-time open source fanatic like me, you probably get questions about open source alternatives to proprietary tools rather frequently. From the 'Alternatives to Microsoft® Visio®' department, here are three tips that should help designers who use Visio in an open source environment. If you need an open source option for opening Visio files, a revived open source application for creating diagrams, or a lesser-known open source tool for converting Visio® stencils, these tips are for you.

Opening Visio files

Open source tools haven't been able to open Visio (.VSD format) diagrams for a pretty long time. The format is commonly used for infrastructure and architecture documentation and planning—and less commonly, for user interface design and planning.

Thankfully, Summer of Code students Eilidh McAdam and Fridrich Strba implemented support for opening .VSD format files in LibreOffice Draw last summer. This support is now available in Fedora's version of LibreOffice and has been since Fedora 17.

Screenshot of LibreOffice Draw opening up a Visio VSD diagram

(Screenshot of LibreOffice Draw opening up a Visio VSD diagram.)

You can install LibreOffice Draw with the following command:

 

yum install libreoffice-draw

 

If you prefer to use Inkscape or any other open source SVG editor (such as Karbon14 or Xara,) Eilidh McAdam produced libvisio which works with the libwpd tools for converting .VSD files to .SVG—making it possible to open them in any SVG editor in Fedora. For Fedora 20, you'll need the libvisio and libvisio-tools packages that are now available, which you can install via the following command:

 

yum install libvisio libvisio-tools

 

These two projects are covered in detail in Libre Graphics World, including full instructions on VSD-to-SVG conversion.

Note:There isn't a solution yet for writing out to .VSD format, but you can write out to .PDF, of course, which may serve your needs in sharing your modified and originally .VSD-format diagrams.

Creating diagrams in a Visio-like environment

Dia

A screenshot of Fedora 20′s Dia

(A screenshot of Fedora 20′s Dia. We’ve highlighted how to turn on anti-aliasing, which might help your diagrams come out looking better.)

Traditionally, Dia has been the best game in town for open source diagramming, but it hasn't changed much over the years and requires a lot of tweaking and extra work to produce beautiful diagrams. For example, diagram graphics are not anti-aliased by default in Dia 0.97.2. We've highlighted how to enable this in the preferences dialog shown in the screenshot above.

You can install Dia with the following command:

 

yum install dia

 

Inkscape

Screenshot of an Inkscape development version

(Screenshot of an Inkscape development version, showing some diagramming capabilities including the symbols library and enhanced diagram connector tool.)

Inkscape is another option—my preferred one—but as a general vector graphics editing tool, it doesn't have the specialized niceities and workflow of a tool specifically focused on diagramming and takes a bit of experience to use it effectively for creating diagrams.

We show the pre-release/development version of Inkscape, packaged as a Copr for Fedora by Ryan Lerch.

While the diagram connector tool has been available in Inkscape for quite some time, the tool has been enhanced in the pre-release—check out the tool options bar above the canvas that corresponds to the tool. There are more options you can choose from in how the connector tool connects different objects in your drawing—you can fine-tune them a lot more fluidly now.

The Inkscape pre-release also features the relatively new symbols library feature not available in the version of Inkscape provided in the main repos. The Inkscape wiki has some information about this new feature, but there aren't any tutorials or anything around it yet. It basically provides you with a docked palette that lets you peruse different libraries of symbols or graphics—some of which are diagram/flow chart symbols—and drag them onto the canvas.

Check out Ryan's post on his Inkscape pre-release Fedora packages to learn how to get these new features.

Calligra Flow

Calligra Flow diagramming tool in Fedora 20

(Calligra Flow diagramming tool in Fedora 20.)

Calligra Flow, which is part of the Calligra suite of productivity applications, is perhaps the best option tailored for someone looking to produce attractive diagrams using open source software. The lineage of this application can be traced back to the KOffice Kivio diagramming tool, which according to Wikipedia was initially released in October 2000. In mid 2010, the Calligra project split off of the KOffice project; not long after, Flow maintainer Yue Liu got to work improving the stencil system and included stencils.

Calligra Flow looks to be a pretty promising diagramming tool, so give it a shot! You can install Calligra Flow with the following command:

 

yum install calligra-flow

 

Converting Visio stencils (.VXD) to .SVG

Converting Visio-format stencils to .SVG involves a pretty kludgy workflow that doesn't always work. Depending on how complex the stencils are, though, it's possible to extract the shapes from a .VXD stencil file and use them as .SVGs. It involves using an old and seemingly abandoned project, so not much is new here, but now that you know how to open .VSD files, it may be of more interest to know how to also open .VXDs files.

Remember, this process can be really buggy and may need some love. For example, you have to move the included 'chunks_parse_cmds.tbl' file to the directory you run the command from, in order for it to work. Even then it fails sometimes, but, it's a start!

The format for Calligra Flow stencils is open and it is ODG-based, so with some effort it is possible to manually convert VXDs to Calligra Flow stencils, and the project has an open call for help on that front. If you'd like to get involved, it seems like a great place to start.

Have fun!


An earlier version of this article, published in Fedora Magazine, appeared on Opensource.com; this version records changes relevant since the release of Fedora 20.

User profile image.
Máirín is a senior principal interaction designer at Red Hat. She is passionate about software freedom and free & open source tools, particularly in the creative domain: her favorite application is Inkscape (http://inkscape.org).

4 Comments

ConceptDraw Pro is the first and only one I really have faith will go somewhere in the future in this business and I would strongly suggest you all give it a try and beat it up somewhat and have fun. It is very solid and has the best ability of handling the new Visio VSDX format which noby has right now except SmartDraw which is equally over-priced for what it does.

Couldn't find it in the repos. Where's the source? Will it even run on Fedora?

In reply to by Robert G (not verified)

You can't find ConceptDraw in any repo because it's commercial software for Mac OS and Windows.

In reply to by Petr Viktorin (not verified)

I've been using yEd to do many of my network diagrams and it works very well.

Creative Commons LicenseThis work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License.