![]() |
![]() ![]() |
|
Visio's ObjectsMost often, you probably create
a Visio drawing by dragging shapes onto the page, then connect them together. Visio also
lets you draw with its set of drawing tools. Any time you draw in Visio, you use one of
four basic objects: line, arc, elliptical arc, and spline. You can call these the "Fundamental Four." Every
object you see in Visio, from the simplest line to the most complex shape and intelligent
connector, is based on these four. I lied: all objects are actually based on three fundamental
objects. It turns out the arc object is almost never used in Visio, because the arc is
rather limited. Attempting to stretch an arc results in unexpected clover and hourglass
shapes. The elliptical arc is more adaptable, since it stretches predictably and can mimic
circular arcs. So, whenever Visio's printed and on-line documentation speaks of
"arcs," it really means elliptical arcs. "But what about text?," you protest. "And the
rectangle and the ellipse?" Looking at the icons on the Standard toolbar,
there seems to be tools for drawing eight different kinds of objects: text, connector,
pencil, curves, line, arc, rectangle, and ellipse. The truth is that tool bar is a facade. Come with me as we
uncover the masquerade and see what is really happening -- behind the scenes --
when you click an icon and draw with its tool: In summary, four -- three, really -- objects are used by
Visio to create all shapes. Three of the tools draw native objects; the other five
tools on the toolbar draw derivative objects. When I invited you to come with me behind the facade, I was making a veiled reference to the ShapeSheet. I won't go into much detail here, except to say that it is the ShapeSheet that determines whether a line object acts like a line or like a smart connector. It is the ShapeSheet that makes four line objects look like a solid rectangle. It is the ShapeSheet that makes two elliptical arc objects look like a round circle. Each shape owes its existence to the ShapeSheet. The ShapeSheet tells you everything you need to know about the shape. There are, however, a couple of exceptions. The most notable exception is that you cannot access the text block from the ShapeSheet (you can by automation); this shortcoming may be corrected in a future version of Visio. Other Objects
Like the Fundamental Four, these additional objects have ShapeSheets that control their behavior. Future Objects My guess is that a native circle would help reduce the overhead of calculating the position of two elliptical arcs. The point object would be like a line with no length. The polyline might be a connected series of lines; if defined like AutoCAD's polyline, then it would include arcs, splines, and variable width. The NURBS curve is the equally-weighted version of the NUBS curve, as discussed earlier. By the time the next version of Visio rolls around, you'll have a total of 11 objects to work with. In addition, the core of Visio is being improved to raise the limit of one or two thousand objects per drawing. Visio's programmers are working towards a faster Visio, code named Farpoint, that handles 100,000 objects and is five times faster than Visio v5.x. This article was adapted from "Visio 5.0 for the Advanced User" with permission of WordWare Publishing, Ltd.
|
|
|
Copyright © 1998-2007 DBM & others | Disclaimer | Privacy | Re-publication | Trademarks | Webmaster | Home |