What is the difference between a line and a [dynamic] connector in #Visio?

When I have reviewed some of the criticisms of connecting shapes in Visio on the web, it has been clear that some users have a misunderstanding about lines and connectors. It is not surprising really because the Microsoft Visio help documentation does not currently make the distinction clear. A connector shape is used to connect two shapes together, whereas a line is normally just a straight line. As usual with Visio though, this is not the whole story because a line can be used to connect two shapes together, and it can be turned into a dynamic connector. I will try to explain myself in this article.

The normal way to connect two shapes together is to use the Connector tool (CTRL+3) on the Home / Tools  ribbon, and a line is drawn with the Line (CTRL+6) drop-down menu in the same ribbon group.

Tips and tricks of connectors

The Connector tool (and the Connect Shapes tool) is normally used to connect two shapes together. The connector shape used can be any 1-dimensional master, and there are many examples to be found on the Visio Extras / Connectors stencil.

Using a connector master

Note that using a master shape from an stencil will automatically copy the master shape to the local stencil of the active document, if it does not exist there already.

It can be a little confusing that Visio refers to the behavior of connectors as Line on the Developer / Shape Design / Behavior dialog, because a line is not necessarily a connector, as you will read below.

Behavior dialog.gif

If a connector master is not currently selected in the active stencil, then Visio will automatically use the default Dynamic connector. In fact, if this master does not already exist in the active document, then it is created.

Creating a dynamic connector.gif

The Dynamic connector master already exists in a number of Microsoft supplied templates because a custom variation of it is required for the type of diagram being drawn.

Tips and tricks about lines

You can use the Line tool to click and drag a new straight line on your Visio page. If you then click elsewhere on the page, you are starting a new line. Each of these lines are perfectly straight, and are known as Line or 1-dimensional (1D) shapes, i.e. they do not have a height.

Drawing multiple lines.gif

However, if you were to click and drag from the end point of the line, then you are creating a new segment in the same shape, and the shape changes from having Line (1-dimensional) behavior to having Box (2-dimensional) behavior. You can continue to draw segments, and if you end up exactly back at the start vertex, then the shape can even be filled with a color.

Drawing a 2D shape with lines.gif

However, usually you miss getting back to the start point exactly but this can be rectified by opening the ShapeSheet and ensuring that the formulas for the final row in the Geometry section points back to the first row. Additionally, the NoFill formula needs to be set to FALSE for any fill colors or patterns to be assigned. Notice how the ShapeSheet 1-D Endpoints section disappear when the shape becomes 2-dimensional!

Fixing a drawn 2D shape.gif

A line can actually be used to connect two shapes together if the Glue to options on the  Snap & Glue settings dialog are changed to allow gluing to shapes.

Connecting shapes with a line.gif

Another option is to turn a line into a dynamic connector by changing the formula in a single ShapeSheet cell! This magic is done by entering 2 (visLOFlagsRoutable) into the ObjType cell in the Miscellaneous section. This will automatically update the NoAlignBox formula to TRUE, insert the Text Transform section, and add extra connector options to the right-mouse menu. This line now behaves like a dynamic connector shape, and can be used to connector two shapes together without enabling the gluing to shape geometry.

Convert a line to dynamic connector.gif

Summary

So, I hope you can see that there is a difference between a line and a connector, and along the way, seen some of the ways that smartness is added to shapes in Visio.

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

Simplify Tasks

Want to learn the simple way?

Paul Turley's SQL Server BI Blog

sharing my experiences with the Microsoft data platform, SQL Server BI, Data Modeling, SSAS Design, Power Pivot, Power BI, SSRS Advanced Design, Power BI, Dashboards & Visualization since 2009

John Goldsmith's visLog

be smart, be clear, be visual ...

Mo's blog

Personal views on Dynamics 365 for Operations and Technical Architecture.

Chris Webb's BI Blog

Microsoft Power BI, Analysis Services, MDX, DAX, M, Power Pivot and Power Query

davecra.wordpress.com/

Microsoft Office 365 Development, and more...

PowerShell.Amsterdam

Automate, Accelerate, Accurate

johnvisiomvp

Life with Visio and other Microsoft Toys!

Title (Required)

Windows Server Essentials Tips & Tricks

Nilsandrey's Weblog

Just another WordPress.com weblog

Things that Should be Easy

Every so often (too often in the IT industry) I encounter things that should have been very easy to do but turned out to be far too complicated. My favorite topics include SharePoint, .Net development, and software architecture, especially distributed systems.

Visio Guy

Smart graphics for visual people

Hannes's Virtual Earth

Tips & Tricks around Mapping and Cloud Computing

Pluralsight blog

be smart, be clear, be visual ...

%d bloggers like this: