<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>farfromfearless &#187; Visio</title>
	<atom:link href="http://www.farfromfearless.com/category/visio/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.farfromfearless.com</link>
	<description>Personal blog of Chris Murphy</description>
	<lastBuildDate>Wed, 08 Sep 2010 02:52:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Visio Productivity Tips</title>
		<link>http://www.farfromfearless.com/2010/03/10/visio-productivity-tips/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=visio-productivity-tips</link>
		<comments>http://www.farfromfearless.com/2010/03/10/visio-productivity-tips/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 16:57:45 +0000</pubDate>
		<dc:creator>Chris Murphy</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Visio]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Visio Tutorials]]></category>

		<guid isPermaLink="false">http://www.farfromfearless.com/?p=544</guid>
		<description><![CDATA[The majority of my work as of late has been on the planning side of my service offering, e.g. Interaction Design and User Interface Design, and most of the artefacts of my work are typically generated with Visio. This past year has provided me with many opportunities and challenges in working with Visio and improving my efficiency with the tool.]]></description>
			<content:encoded><![CDATA[<p>I thought I would take some time to share some of the lessons have helped to improve my efficiency with Visio (2007).</p>
<p><strong>For the record:</strong> I’m not a die-hard fan of Visio, but rather I believe in choosing The Right Tool for The Job. In this case, Visio has been most effective, though I do use other tools when Visio is not appropriate.</p>
<p><strong>Quick Links:</strong></p>
<ol>
<li><a title="Backgrounds &amp; Guides" href="#tip-1">Tip No. 1</a>: Backgrounds &amp; Guides</li>
<li><a title="Use Layers to Group Common Elements" href="#tip-2">Tip No. 2</a>: Use Layers to Group Common Elements</li>
<li><a title="Use “Shape Data” for Common Shapes" href="#tip-3">Tip No. 3</a>: Use “Shape Data” for Common Shapes</li>
</ol>
<h2 id="tip-1">Tip No. 1: Backgrounds &amp; Guides</h2>
<p>Guides provide a great way to implement consistent columns and rows for a page. This is useful when planning a series of pages derived from a common layout.</p>
<h3>Problem:</h3>
<p>In my wireframe document, I have three different types of background pages for common page configurations. Each page has a defined “working area” where I layout my shapes and other elements. In the past, I have typically resorted to adding guides on each page, and most of these guides are aligned to the “working area” previously described.</p>
<p>The problem is that I’m having to add new guides to each page I create. I’ve tried a variety of techniques to manage my guides, and the one I had settled on previously (and still use to some degree) is copy/pasting my guides (and other shapes) using a macro called:</p>
<pre>CopyNoTranslate()</pre>
<p>I found the macro on <a title="CopyNoTranslate() - Wellie.com" href="http://www.welie.com/visio/index.php#pasteinplace">Welie.com</a>, and suffice to say this did improve my efficiency, but only to a degree.</p>
<p><strong>Note:</strong> Wellie.com is a great source for useful macros for Visio beyond just the one function.</p>
<h3>Solution:</h3>
<p>A better solution was a heck of a lot easier than I realized: <strong>add the guides to your background pages</strong>.</p>
<p>Using guides in the background pages allows me to ensure consistency in terms of shape dimensions (vertically and horizontally), by allowing me to “snap” a shape to align to a guide. This approach has the added bonus of minimizing the number of additional guides I need top drop onto a page. I’ve only discovered this one feature recently, and it’s really helped to minimize the amount of repetitive work I had to do in preparing the pages.</p>
<h2 id="tip-2">Tip No. 2: Use Layers to Group Common Elements</h2>
<p>This one takes a little bit of time to get in the habit of doing, and at some point, I’ll get around to writing a macro to automate it.</p>
<h3>Problem:</h3>
<p>There are times where I have a number of shapes or a collection of shapes that I want to show or hide when I output the document for a client review (*.PDF). In the past, I have resorted to commandeering Acrobat’s layer’s feature, but the learning curb for clients was a little too high for me to expect to use that as a long-term solution.</p>
<h3>Solution:</h3>
<p>What I ended up doing was using Visio’s “Layers” feature to group common elements together by assigning selected shapes to a layer. You can see a quick demo/tutorial on <a title="Visio Layers Tutorial - YouTube, 1 min - July 18, 2009" href="http://www.youtube.com/watch?v=lI_Q_WflpsA">how to use Visio’s Layers here</a>.</p>
<p>This approach allowed me to toggle shapes such as annotations or overlays (e.g. “Modal Windows”) on certain pages, and hide them altogether for others.</p>
<p>This approach does come with <strong>a small caveat</strong>: if you want to show all of the hidden layers in your document, e.g. annotations, you’ll need to either produce one document with all of the elements showing, or two documents—one with all the elements showing, and the second without.</p>
<h2 id="tip-3">Tip No. 3:  Use “Shape Data” for Common Shapes</h2>
<p>In an earlier article, I provided a detailed tutorial on how to leverage the Shape Data features for adding prompts with input fields (with some intelligent behaviour). This one feature has allowed me to improve how I manage and work with text and information I add to my wireframes, etc.</p>
<h3>Problem:</h3>
<p>You might have a pretty concise library of common elements that you use on a regular basis, and a few of them require that you update a number of fields. A good example of this is <a title="Nick Finck’s Sitemap Stencils" href="http://www.nickfinck.com/blog/entry/visio_stencils_for_information_architects/">Nick Finck’s Sitemap Stencils</a> which are still in use by designers today.  If you’re using the stencils, you’ll likely have discovered that you need to click a number of times to drill down into the desired field before you can enter any text (the page ID for example).</p>
<h3>Solution:</h3>
<p>Use Visio’s Shape Data features to help automate the task of data entry and editing for common shapes. Apply this feature sparingly as it is easy to go over-board with the technique.</p>
<p>Shape Data can improve the task of updating and manage these shapes by automating the data-entry task. I won’t go into great detail here, but if you want more information about how to accomplish this, take a read through my tutorial: <a title="Creating a Reusable Shape with Visio Shape Data Support" href="http://www.farfromfearless.com/2009/04/15/creating-a-reusable-shape-with-visio-shape-data-support/">Creating a Reusable Shape with Visio Shape Data Support</a>.</p>
<h2>What’s Next:</h2>
<p>There are a number of great sources for more tips on using Visio’s lesser used features (and some of it’s more advanced features); one such source is <a title="VisGuy--Shapes, Stencils, Drawings, Templates, Tutorials, Tips &amp; Developer Info for Microsoft Visio" href="http://www.visguy.com/">VisGuy.com</a>—from whom I have learned a great deal about Visio.</p>
<p>If you have any tips of your own, please feel free to share them <a title="Share your Visio tips &amp; tricks" href="#comment-form-main">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.farfromfearless.com/2010/03/10/visio-productivity-tips/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Creating a Reusable Shape with Visio Shape Data Support</title>
		<link>http://www.farfromfearless.com/2009/04/15/creating-a-reusable-shape-with-visio-shape-data-support/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=creating-a-reusable-shape-with-visio-shape-data-support</link>
		<comments>http://www.farfromfearless.com/2009/04/15/creating-a-reusable-shape-with-visio-shape-data-support/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 02:09:01 +0000</pubDate>
		<dc:creator>Chris Murphy</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Visio]]></category>
		<category><![CDATA[Custom Behavior]]></category>
		<category><![CDATA[Custom Event]]></category>
		<category><![CDATA[Data Graphic]]></category>
		<category><![CDATA[Shape Data]]></category>

		<guid isPermaLink="false">http://www.farfromfearless.com/?p=419</guid>
		<description><![CDATA[An in-depth tutorial on how to leverage Visio's datagraphics features for building efficient, multipurpose shapes for use in your diagrams and documents.]]></description>
			<content:encoded><![CDATA[<p>I’ve been quite busy over the past week having to rebuild many of my site planning documents from scratch. In the course of delving deeper into the workings and features of Visio, I’ve ended up with a small collection of really useful tips that I thought I would share here. The most useful one to date has been the creation of Visio shapes with Data Graphics support.<span id="more-419"></span><strong></strong></p>
<p><strong>Note:</strong> this should really be a screen cast – next time <img src='http://www.farfromfearless.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<h2>Custom IA Shapes with a Dialog/Prompt</h2>
<p>One of the primary building blocks of any information architecture is the shape that represents a page concept. There are some great stencils out there for Visio that other designers have put together, but you’ll find that maintaining these shapes (when on page) can be laborious given how Visio constructs its geometry.</p>
<p>One of the time savers that can be leveraged is the use of “Shape Data” to add custom information to a shape, and “Shape Graphics” to display the custom information. One other feature that can be leveraged is the customization of “Shape Sheet” information to provide dialog support.</p>
<h3>What is a Data Graphic?</h3>
<blockquote><p>Microsoft Office Visio 2007 Professional offers new ways for businesses to visualize information. New data connectivity, data linking, and data refresh features enable users to more easily connect to external data and associate it with specific shapes in a drawing, and to more easily refresh the data manually or automatically. The Data Graphics feature presents linked data and other shape information graphically in a diagram. Together, these capabilities make it faster and easier to communicate important information for making decisions and taking actions.Source: <a title="Building Custom Data Graphics for Visio 2007" href="http://msdn.microsoft.com/en-us/library/aa468596.aspx">MSDN – Office Developer Center</a></p></blockquote>
<p>In short: Data Graphics provide visualization capabilities to represent data in a meaningful way.</p>
<p>You can <a title="Visio Data Grahics for UxD/IxD Documents" href="http://www.farfromfearless.com/wp-content/uploads/2009/04/fff_custom_shape.zip">download the example for this tutorial here</a>.</p>
<h3>Getting Started:</h3>
<p><strong>Software:</strong> I’m working with a copy of <a href="http://office.microsoft.com/en-us/visio/default.aspx">Visio 2007</a>, and so some of the concepts might be labelled differently in older versions of the software. Consult your product documentation if need help finding the features.</p>
<h2>Step 1: Preparing the shape</h2>
<p>You can approach this step in one of two ways: start from scratch or attempt to modify an existing shape (as long as its not leveraging Data Graphics already).</p>
<p>For the purpose of this tutorial, we’ll be starting from scratch, but that doesn’t mean that you can’t skip this step and apply the later principles to your existing shapes.</p>
<p>Moving on…</p>
<h3>Creating the shape</h3>
<p>You’re going to need a shape. The most basic shape you may want to use is a rectangle to represent a page (the orientation is up to you). Start off by drawing a simple rectangle using Visio’s drawing tools. I have my page units set to inches, so a simple 1”x .7” rectangle is what I’ll make.</p>
<p>You can apply some basic effects to the shape such as rounded corners. For this one, I’ll use a .5pt corner radius.</p>
<p><img style="display: inline" title="creating_the_shapes" src="http://www.farfromfearless.com/wp-content/uploads/2009/04/creating-the-shapes.png" alt="creating_the_shapes" width="337" height="141" /><br />
<strong>Fig. 1</strong> – The basic shape.</p>
<p>Now, the thing about Visio shapes is that you can automatically input text by typing while the the object is selected. This is the default behaviour for nearly all Visio stencils that I have come across.</p>
<p><img style="display: inline" title="entering_text" src="http://www.farfromfearless.com/wp-content/uploads/2009/04/entering-text.png" alt="entering_text" width="195" height="167" /><br />
<strong>Fig. 2</strong> – Inputting text.</p>
<p>For the most part this is a good thing, but for what we want to create, it&#8217;s important we avoid this behavior. The layout of the labels is important for legibility, urging some clever designers to create complex shapes that will group a number of text fields arranged to display bits of info for the shape. This is where things tend to become unmanageable.</p>
<p>Moving on&#8230;</p>
<h3>Adding Glue Points</h3>
<p>You may not be familiar with Visio “Glue Points”, but you’re certainly familiar with how they work. “Glue Points” are those tiny dots that look like shape handles on a given shape. These dots are anchor points for objects to connect to each other.</p>
<p>You can add glue points to your shape by using the Connection Point tool located on your toolbar here:</p>
<p><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="connection_point_tool" src="http://www.farfromfearless.com/wp-content/uploads/2009/04/connection-point-tool.png" border="0" alt="connection_point_tool" width="413" height="106" /><br />
<strong>Fig. 3</strong> – The “Connection Point Tool”.</p>
<p><strong>Note:</strong> Ctrl+Click anywhere within the shape to add a new glue point.</p>
<p>Once you’ve done that, your shape is pretty much ready to go.</p>
<p><img style="display: inline" title="glue_points" src="http://www.farfromfearless.com/wp-content/uploads/2009/04/glue-points.png" alt="glue_points" width="337" height="141" /><br />
<strong>Fig. 4</strong> – The result after adding glue points.</p>
<h2>Step 2: Adding Shape Data</h2>
<p>As stated before, Shape Data is little more than additional information that can be dynamically added to a given shape. In this case we want to add some basic information to our shape that we would normally enter by hand.</p>
<p><strong>Here are the fields:</strong></p>
<ol>
<li><strong>ID</strong> – the numeric or text-based identifier for the shape</li>
<li><strong>Label</strong> – the label that you want to display, e.g. “home”, “about”, “contact”, etc.</li>
<li><strong>Type</strong> – This is something we’ll save for another tutorial, add it for now</li>
</ol>
<p>You can access the Shape Data dialog by first selecting the shape you created in Step 1, and going to your menu under Data&gt;Shape Data. The alternate way of accessing the interface is by right-clicking to show the context menu (on the shape) and navigating to Data&gt;Shape Data.</p>
<p>You’ll be presented with a prompt if there is no Shape Data available (there shouldn’t be)</p>
<p><img style="display: inline" title="no_shape_data_prompt" src="http://www.farfromfearless.com/wp-content/uploads/2009/04/no-shape-data-prompt.png" alt="no_shape_data_prompt" width="286" height="125" /><br />
<strong>Fig. 1</strong> – The Shape Data prompt.</p>
<p>Click “yes” to bring up the Shape Data interface.</p>
<p><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="define_shape_data_dialog" src="http://www.farfromfearless.com/wp-content/uploads/2009/04/define-shape-data-dialog.png" border="0" alt="define_shape_data_dialog" width="460" height="468" /><br />
<strong>Fig. 2</strong> – The Shape Data dialog.</p>
<p>Now that you have the interface up, start by entering the fields (mentioned above). What you’ll notice that there are two similar fields: “Label” and “Name”. What’s the difference? The “Label” is what will be displayed on the shape (and referenced in a later step), and the “Name” is what you’ll need to use if you’re programming with Visio.</p>
<p><img style="display: inline" title="define_shape_data_dialog_properties" src="http://www.farfromfearless.com/wp-content/uploads/2009/04/define-shape-data-dialog-properties.png" alt="define_shape_data_dialog_properties" width="460" height="468" /><br />
<strong>Fig. 3</strong> – The result after adding custom properties.</p>
<p><strong>This is how you can accomplish this:</strong></p>
<ol>
<li>Prefix each of the above fields with “str_”, e.g “str_id” or for “ID” use “UID”</li>
<li>Ensure that each of these items has a “Type” set to string. You can customize the format as you see fit by clicking on the button beside “Format”</li>
<li>Provide a default value in the “Value” field, e.g. “[Page Name]”</li>
<li>Provide a brief message in the “Prompt” field – remember, you’re the one that’ll be prompted, so I suggest that you not annoy yourself needlessly</li>
<li>The “Sort Key” will accept either a, b, c or 1, 2, 3 – the idea being that you set the properties in the order you’d prefer them to appear</li>
<li>Lastly, check the “Ask on drop” checkbox – this is what will force a prompt to be displayed when you add the shape to your sheet, duplicate, or when you copy/paste it</li>
<li>Hit “Okay” when you’re done</li>
</ol>
<p>That’s it for the adding custom Shape Data to your shape. Now the trickery comes in when we’re attempting to display the data on our shape. Enter Data Graphics.</p>
<h2>Step 3: Applying Data Graphics to a Shape</h2>
<p>Ok. This is the point where things get a little interesting as later steps will require a little manual labour to format the data and lay it out a little better that what Visio automatically creates for you.</p>
<p><strong>This is how you can accomplish this:</strong></p>
<p>1. Select your shape, and go to your main menu and select Data&gt;Display Data on Shapes&#8221;. Alternately you can right-click to bring up the context menu and select Data&gt;Edit Data Graphic…</p>
<p>2. And new panel should have appeared on the right hand side of your Visio working area (default). This is the Data Graphics panel where you’ll create the labels to be displayed on your shape</p>
<p>3. Select “New Data Graphic…” under “Create a new data graphic”</p>
<p>4. A new dialog window will appear</p>
<p><img style="display: inline" title="data_graphic_dialog" src="http://www.farfromfearless.com/wp-content/uploads/2009/04/data-graphic-dialog.png" alt="data_graphic_dialog" width="542" height="367" /><br />
<strong>Fig. 1</strong> – the New Data Graphic dialog.</p>
<p>Now that you have the dialog up, you’ll notice that there’s nothing there. That’s what you want. Follow the instructions to “Click ‘new item’ to display data on shapes”. You’ll find that drop down menu on the top left of the dialog window.</p>
<p>When you display the menu, you’ll have several options that are available to you. For the purpose of what we’re creating, you’ll only want to select the first item. The rest, you can experiment with on your own.</p>
<p>The item will invoke a new prompt (Microsoft is obsessed with this).</p>
<p><strong>This is how you can accomplish this:</strong></p>
<ol>
<li>There are several fields that are available to you, the one you’ll start with first is the “Data field”</li>
<li>If you recall earlier when you were setting the key/value pairs in the Shape Data dialog, you should notice the same items available to you when you click on the drop down menu. Select “ID”</li>
<li>Turn your attention to the “Callout” field – this is where you can specify a style for the label. I suggest that you stick with a Text callout due to the nature of what we’re building. Experiment with the other types when you have a chance</li>
<li>Next, let’s look at the “Callout position”. You’ll notice that the two drop downs: “horizontal”, and “vertical” fields are greyed out. Uncheck “Use default position”</li>
<li>You should now have access to the two fields. Set the horizontal position to “center” and leave the vertical position where it is</li>
</ol>
<p><strong>This next part can be a bit confusing the first time around, but follow these steps:</strong></p>
<ol>
<li>Leave the “Show Value” property as “Yes”</li>
<li>Leave the “Value Format” property as blank, it will automatically use the format you set earlier in the Shape Data dialog</li>
<li>Leave the “Label Position” property with its default</li>
<li>Delete the “[Default]” value from the “Label” property</li>
<li>Set the “Border Property” value to “None”</li>
<li>Leave both “Fill Type” and “Callout Offset” at “None”</li>
<li>Click “OK” to set your changes</li>
</ol>
<p>You should be back to the “New Data Graphic” dialog. Now that you’ve done the first one, rinse and repeat for the other fields.</p>
<p><strong>Note:</strong> When you come to the “Type” field, set the “Show Value” property as “No”.</p>
<p>Click the “OK” button to apply the Data Graphic to your shape.</p>
<p><img style="display: inline" title="data_graphic_dialog_edit" src="http://www.farfromfearless.com/wp-content/uploads/2009/04/data-graphic-dialog-edit.png" alt="data_graphic_dialog_edit" width="542" height="367" /><br />
<strong>Fig. 2</strong> – The result after the Data Graphic fields have been set.</p>
<h2>Step 4: Formatting Your New Labels</h2>
<p>We now have an opportunity to adjust the layout of our new Data Graphic’s labels. If you’ve followed the steps above, you’ll have accomplished something that approximates this:</p>
<p><img style="display: inline" title="formatting_data_fields" src="http://www.farfromfearless.com/wp-content/uploads/2009/04/formatting-data-fields.png" alt="formatting_data_fields" width="337" height="141" /><br />
<strong>Fig. 3</strong> – The result after formatting the fields.</p>
<p>If you recall the alignment we left in Step 3, you’ll see that reflected in the orientation of the labels. It&#8217;s not pretty, but if you’re partial to that, feel free to keep the alignment and move on to the last step. If however, you are like me, you’ll want to make some minor tweaks.</p>
<p>Click on the object until you’re able to select the text field containing one of the fields. Once you’ve selected the field, you can format it as you wish (color, fonts, font size, etc.). It’s likely that you’ll want to adjust the alignment at the very least (centered).</p>
<p>Rinse and repeat for the the “Label” field.</p>
<p>You should now have a Visio shape that you can quickly set the properties for when you add it to your pages and diagrams.</p>
<p><strong>Note: </strong>There is one caveat though, and you’ll have to balance this with what you’re getting in return: you may find that having constant prompts will annoy you especially if you need to work quickly or you’re not the type of user to have your pinkie you the “esc” key. You can avoid this by not enabling an automatic prompt, I’ll leave that to you to decide.</p>
<h2>Step 5: Adjusting the Behaviour of the Shape</h2>
<p>This last (and final) step is the most crucial aspect of making a truly (re)usable Visio shape. It’s important because it will allow the author or designer to quickly make modifications to the Shape Data without having to manually click through the shape’s various objects.</p>
<p>We’re going to tackle this in two ways:</p>
<ol>
<li>Enable a custom double-click behaviour to the shape that will display the shape’s Shape Data dialog.</li>
<li>Restrict the default editing and formatting features of shape to preserve the Data Graphics we’ve attached to the shape.</li>
</ol>
<h3>Restricting Editing and Formatting</h3>
<p>All Visio shapes share common properties that you can customize in order to get the behaviour you want from it. If you recall from earlier in the article where we were first creating the shape, it was easy to simply double-click and start entering text. In this case, what we want to do is restrict some of the normal behaviour of the shape, and not allow the author to input text directly onto the shape. We also want to restrict the author from modifying the internal layout of the shape and the Data Graphics.</p>
<p><strong>Follow these quick steps to accomplish the desired behaviour:</strong></p>
<ol>
<li>Right-click on your shape to bring up the context menu, and select Format&gt;Behaviour</li>
<li>The “Behaviour” tab will contain all the common behaviour properties of the shape; turn your attention to the “Group Behaviour” options on the bottom right portion of the dialog.</li>
<li>Deselect “Edit text of group”</li>
<li>Under the “Selection” property, change the setting to “Group Only” – this will restrict the selection of nested shapes and make the overall shape appear as if it is the only selectable shape.</li>
<li>Click “OK”</li>
</ol>
<p><img style="display: inline" title="formatting_behaviour" src="http://www.farfromfearless.com/wp-content/uploads/2009/04/formatting-behaviour.png" alt="formatting_behaviour" width="393" height="477" /><br />
<strong>Fig. 1</strong> – Accessing the “Behaviour” dialog through the context menu.</p>
<p><img style="display: inline" title="formatting_behaviour_dialog" src="http://www.farfromfearless.com/wp-content/uploads/2009/04/formatting-behaviour-dialog.png" alt="formatting_behaviour_dialog" width="470" height="388" /><br />
<strong>Fig. 2</strong> – The “Behaviour” dialog after properties have been set.</p>
<h3>Enabling Custom Double-click Behaviour</h3>
<p>If you took some time in the to explore the behaviour dialog, you’ll have noticed the “Double-click” tab. That particular set of properties allows you to attach some typical behaviours to the shape, but you’ll also notice that the “Custom” option is greyed out. We want to be able to set this, but Visio will not allow us to do it through the dialog.</p>
<p><strong>Note:</strong> It took me about 3 days to figure this out, not having really delved too deeply into Visio’s Shape Sheet capabilities, so hopefully someone will read this post and save someone else like me a little grief.</p>
<p>The “Custom” option is greyed out for reason, and it appears that customization means delving into the murky depths of Visio’s “Shape Sheets”. It’s not as bad as I make it out (I’m still harbouring a little frustration), and it’s a relatively painless task to complete.</p>
<p><strong>Follow these quick instructions to accomplish this time-saving behaviour:</strong></p>
<ol>
<li>Right-click on your shape and select “Show Shape Sheet”. This will bring up a new window which you will find chock full various property sheets.</li>
<li>Scroll to the bottom of the list until you find one property sheet labelled “Events” – this is crucial.<br />
<strong>Note: </strong>If you cannot see an “Events” sheet, that means it’s hidden. To show the “Events” sheet, simply right-click somewhere in the grey area outside of the various property sheets, and select “View Sections” from the context menu. You’ll find a collection of checkboxes that indicate the different sheets. Find the “Event” sheet and enable it by selecting the checkbox. Hit “OK” to return back to the Shape Sheet window.</li>
<li>In the “Events” sheet, locate a property labelled “EventDblClick” – this is where we instruct the shape what to do when we double-click on it. Enter the following value (case sensitive): “=DOCMD(1312)” (replace <strong>everything</strong> in the field including the equal sign, but do not include the quotes). Hit the Enter button to accept the changes.</li>
<li>Close the Shape Sheet window as we no longer need it.</li>
</ol>
<p><img style="display: inline" title="double_click_event" src="http://www.farfromfearless.com/wp-content/uploads/2009/04/double-click-event.png" alt="double_click_event" width="550" height="44" /><br />
<strong>Fig. 3 </strong>– The &#8220;Events&#8221; property sheet.</p>
<p>If you’ve followed the instructions above, you should expect to see the Shape Data dialog window pop up. Test this behaviour on your customized shape by double-clicking.</p>
<p>That’s it. You now have a shape that you can make your diagram work a little more productive.</p>
<h2>Final Notes</h2>
<h3>Shape Data</h3>
<p>There are many other purposes for which Shape Data can be leveraged. If you recall one of the properties that I specified early on was “type”. I’ll save that for a later posting, but if you search Google for the term “Visio multi-shape”, you’ll get an idea of what I’ll be covering next.</p>
<h3>Data Graphics</h3>
<p>The one thing I likely did not articulate in this article was that Data Graphics can be reused and re-applied to other shapes that you might want to display similar Shape Data. The caveat being that you’ll have to re-format the fields for each one again. You can create new Data Graphics as you need them, but be sure to keep your document as clean as possible of unnecessary clutter. You can do this by going to File&gt;Remove Hidden Information. I’ll leave the rest for you to figure out.</p>
<h3>Events &amp; Behaviours</h3>
<p>There are many other behaviours that you can attach to shape events, and double-click is just one of those. For more information about Visio’s DOCMD() macro, check out the MSDN documentation <a title="DOCMD Function [Visio 2003 SDK Documentation]" href="http://msdn.microsoft.com/en-us/library/aa214156(office.11).aspx">here</a>.</p>
<h2>Conclusion</h2>
<p>This won’t make you a better UX designer by any means, but it can certainly help you save some time so you can focus on what’s important. Take some time to consider some of the other customization features you can apply to your shape, but remember: as is often the case, simplicity is the goal.</p>
<p>You can <a title="Visio Data Grahics for UxD/IxD Documents" href="http://www.farfromfearless.com/wp-content/uploads/2009/04/fff_custom_shape.zip">download the example for this tutorial here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.farfromfearless.com/2009/04/15/creating-a-reusable-shape-with-visio-shape-data-support/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>
