Creating diagrams in OpenOffice.org Draw and Impress

OpenOffice.org's tools for creating diagrams are easy to ignore. For one thing, their controls are extremely small. For another, they are pitifully under-documented in the online help, which plods through the options without explaining what they are or why you want to use them. Then, just to really confuse you, the full set of tools is available only in Draw and Impress, although Write and Calc users might also want them. Yet despite these handicaps, OpenOffice.org's diagram tools work well enough that many users should find no need for more sophisticated tools such as Dia.

Diagrams require a degree of precision in placement. For this reason, before you start constructing a diagram, maximize the OpenOffice.org window and change the zoom to at least 120%. You may also want to select View -> Grid -> Display Grid to give you some guidelines for placing pieces of diagrams. Should the grid not be precise enough, you can change it in Tools -> Options by going to the Grid pane for the applications you are using.

If you wanted, you could create diagrams using Draw or Impress' tools for drawing primitives and multi-sided shapes. However, that would be doing things the hard way. You will have a far easier time if you use the sets of shapes specifically designed for diagrams: Flowcharts, Callouts, and Connectors. You can find these sets by running the cursor over the Drawing toolbar, but Connectors are eighth from the left, while Flowcharts and Connectors and Callouts are thirteenth and fourteenth.

Connectors, incidentally, are the set missing in Write and Calc for some reason.

To use a shape from any of these sets, click the arrow key beside the icon and select a shape. Otherwise, the set defaults to the last shape used -- a behavior that can be useful if you are adding many of the same shapes. After you select the shape, drag the cursor over the document to create an object of the size you want. In most cases, you will probably want to press the Select key as you drag to keep the proportions of the object from changing. When you need another object of the same type, copy and paste the original.

The object you create will have the default line and area fill: by default, a continuous line of 0 width and a fill of Blue 8. Alter these to your preferences (for instance, a white fill), then press the F11 key to open the Styles and Formatting floating palette. Select the object, and click the New Style from Selection button at the top of the floating palette. As you add other objects, you can now create a uniform style by selecting first the object, then the style you created.

Flowchart Shapes

Flowchart shapes are the basic tools for creating not only traditional flowcharts, but also less formal diagrams such as organizational charts or family trees. If you are unfamiliar with the available shapes, you will probably not find the mouseover text very useful, so you might want to work with an online guide open in your web browser, such as the Wikipedia entry on flowcharts.

For less formal diagrams, the flowchart shapes are also useful, since they include basic primitives such as rectangles, triangles, and ellipses.

Callouts

Callouts are a block of text that point to a detail in a complex diagram or screenshot, like the ones you might find in an anatomy or engineering text. They are often used as labels, or as a way of giving more information than fit into a diagram, especially when the document is highly complex.

Unlike connectors (see below), callouts do not attach themselves to objects. Consequently, if you change the position of the object, you have to change the position of the callout separately. However, you can edit callouts manually or via styles to change all aspects of them, including typefaces, and whether the line pointing to the diagram has an arrow at the end or not.

Connectors

In most diagrams, you want to show some sort of connection between objects. You could use Draw or Impress' array of arrows, but if you ever need to reposition objects, you will need to reposition the arrows, too, if not delete or redraw them. By contrast, connectors move as the objects move, automatically readjusting themselves so that each end always points to a position on the outline of an object. By default, this position is on the center of one side of an object. You can see these positions marked with an x when you select a connector from the Drawing taskbar.

If anything, connectors are even more under-documented than the rest of OpenOffice.org's diagramming tools. However, basically they come in four types. Standard connectors are entirely outside any object, and change directions only at right angles. Line connectors are at any angle, and may pass through an object, while straight connectors are the shortest line between the two end points. Curved connectors are exactly as they sound, and, like standard connectors, by default are outside all objects.

In many cases, the first three types will look exactly the same. If the one you choose does not do what you want, you can experiment with another type of connector.

Each type of connector also comes with three types of end points: a square at each end, an arrow at one end, and an arrow at both ends. In flow charts, the direction of an arrow indicates the flow of control, including a movement along the steps of a process. However, in other diagrams, you can use the end points more loosely. For instance, in a family tree, you would probably want to use square end points.

Standard, line, and curved connectors also have defining points between the end points -- in the case of curved connectors, usually several, since defining a curve is much harder than defining a straight line. The position of these points may change as you drag one of the objects that the connector joins. In addition, you can drag these points to change the shape of the connector without moving the connected objects.

To change the appearance of a connector more precisely, select it and click Connector on the right-click menu. You can alter the skew (the angle) at which lines in the connector meets, or the line space (read line length or height) of lines in the connector -- or, if you want, the type of connector. The dialog includes a preview, and you can always cancel before applying your changes if you lose control of your editing.

Connectors are as much objects as a flow chart shape, so you can manually edit line width and color and even create a style for them. Object styles even contain a page for defining connectors' skews and line spaces. However, in practice, defining these two elements in a style is rarely useful, because, unless you have carefully planned your diagram, you will probably have to customize each connector anyway.

Making the diagramming tools work for you

OpenOffice.org's Flowcharts, Callouts, and Connectors are somewhat rough and ready. Connectors especially require some experimenting to figure out how to use them and to decide which types are best for your purposes. And even the most expert user may sometimes get confused by which end of a line an arrow when end up.

Still, you can greatly reduce the awkwardness of these tools if you rough out your diagrams on a sheet of paper before first. In this way, the repositioning of objects should be minimal, and you will probably have less of a battle against the vagaries of the tools.

You should also eliminate much of the drudgery by using styles whenever possible. The more complex the diagram, the more styles will save you doing the same tasks over and over again.

In general, there's enough power in OpenOffice.org's diagram tools for most tasks. But you have to be patient and methodical in making that power work for you rather than against you.

______________________

--
Bruce Byfield (nanday)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Changing the default fill color (blue 8) to white

Alver's picture

Does anyone know a method to get rid of the default blue and start any new drawing with white (or any other color I would fancy)? I know I can change from blue to something else while preparing a diagramme but this is a rather cumbersome method.

Thx for a possible answer

Alver

p.s. I am a longtime Visio user where things this are way simpler.

Connectors

Jerry M's picture

Great article explaining the charting capabilities. I do have one question: is there a way to add a Connectors button on the Draw toolbar in Write?

Missed Connections

michaeleoneil's picture

I've been hunting for the Connectors button in Writer for the last 15 minutes, your article saved my sanity! Now I see the complete tool set in Draw. Thanks for a great write-up on a nice, but poorly documented, tool.

Symbols

Gary Morris's picture

Regarding the network diagrams, I haven't seen any pre-drawn symbols either, and I have a bit of a learning curve anyway. I'm accustomed to MS Visio for that kind of diagramming. I don't care much for Windows, but Visio has evolved into a pretty intense package! The ShapeSheet functionality is one thing I really miss, and the VB integration as well. I actually created a digital electronics simulator (that really worked!) with Visio. I was also able to use VB to create what I deemed "assemblies", where you could create a circuit using my base symbols (AND, OR, connectors, on/off switches, LED-type displays, etc.) and Visio would put it together making just ONE symbol that you could then use in diagrams. Sadly, I don't think OO has anything like this capability, though I've tried my best to make good use of it. As for the symbols, you will likely have to create your own unless someone else has already done it, and don't expect them to be anything like Visio has in many regards!

Network diagrams

Anonymous's picture

As a network admin I think OOo draw is perfectly capable of making network diagrams, however, the only thing missing is the related symbols like a router, switch, firewall etc.

Does anyone know where to find them ?

Drawings

oldmell's picture

Try using Dia Diagram Editor. They have a nice selection of figures you can use.

OpenOffice.org diagrams with Draw

geopaxton's picture

I have been a long-term user of Corel Draw, and love it. I am writing and publishing books, which have numbers of drawings of various kinds (seldom flow-diagrams). My Corel software is in storage 600km away, so my only option is to use OpenOffice Draw. I moaned and groaned initially, but have come to see that it will do just about everything I could have done in Corel Draw. I think it is a wonderful package. I love the whole suite, but Draw is the cherry on the top.

OpenOffice Diagrams

William Peckham's picture

Excellent article.
I have long been a dia user: the difficulty in getting a document diagram in swriter seemed almost insurmountable. I am still confused about the reasoning behind crippling the drawing tools in some of the modules, but knowing that Draw and Impress have access to more adequate tools is refreshing.

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState