Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
programming4us
Windows 7

Microsoft Visio 2010 : Creating and Using Shape Data Fields (part 1) - Adding Simple Data Fields

- How To Install Windows Server 2012 On VirtualBox
- How To Bypass Torrent Connection Blocking By Your ISP
- How To Install Actual Facebook App On Kindle Fire
3/13/2014 1:50:37 AM

You can add Shape Data fields to any Visio shape. The fields can hold several different types of data, and you can save sets that you’ve defined and apply them to other shapes all at once.

1. Adding Simple Data Fields

Adding basic Shape Data fields is a snap using the Define Shape Data dialog. Let’s jump in and give it a whirl!

Adding Shape Data Fields to a Shape
1.
Start a new, blank drawing.

2.
Rename Page-1 to Light Bulbs and then save it somewhere convenient as Ch7 Shape Data.vsd.

3.
Draw a circle on the page and add a bit of line and fill formatting so that it isn’t too boring. I’ll call this a light bulb shape. I know it’s not much of a light bulb, but it will do for learning purposes.

4.
Right-click the light bulb and choose Data, Define Shape Data. Alternatively, if the Shape Data window is visible, select a shape, right-click the Shape Data window, and then choose Define Shape Data. The Define Shape Data window appears.

5.
Create a field to hold the bulb’s power rating.

a. In the Label field, type Power (Watts).

b. Change the Type to Number.

c. You can choose a number format by clicking the arrow to the right of the Format field.

Light bulbs are rated in whole-number wattages, so you don’t need decimal places. Some options for units are provided, but Visio understands only linear or angular units; there’s no choice for power units in the list.

You can specify custom prefixes and suffixes in the Format field, however. For the Power field, enter #\ \W in the Format box. The pound symbol tells Visio to repeat the full nondecimal part of the number, and the backslashes tell Visio to append the next character. So you are appending a space and a W to denote Watts.

d. Set the default by typing 100 in the Value field.

6.
Now add a Model field.

a. Click New at the bottom of the dialog. You see Power in the list of fields, plus a new “Property2”, which is highlighted.

b. In the Label field, type Model.

c. Leave the Type as String.

d. Make a placeholder for the default value by typing <model>. Figure 1 shows how the dialog should appear.

Figure 1. Two new Shape Data fields being defined using the Define Shape Data window.

7.
Click OK. With the bulb selected, note that the Shape Data window displays the two fields you just created.

8.
Make a few copies of the light bulb and experiment with changing the Shape Data values. Notice what happens if you try to enter non-numerical text in the Power field.

9.
Save the drawing and keep it open for the next Let Me Try It.
Other -----------------
- Microsoft Visio 2010 : Working with Data - Introducing Shape Data Fields
- Advanced Windows 7 Programming : Working in the Background - DEVELOPING TRIGGER-START SERVICES (part 7)
- Advanced Windows 7 Programming : Working in the Background - DEVELOPING TRIGGER-START SERVICES (part 6)
- Advanced Windows 7 Programming : Working in the Background - DEVELOPING TRIGGER-START SERVICES (part 5)
- Advanced Windows 7 Programming : Working in the Background - DEVELOPING TRIGGER-START SERVICES (part 4)
- Advanced Windows 7 Programming : Working in the Background - DEVELOPING TRIGGER-START SERVICES (part 3)
- Advanced Windows 7 Programming : Working in the Background - DEVELOPING TRIGGER-START SERVICES (part 2)
- Advanced Windows 7 Programming : Working in the Background - DEVELOPING TRIGGER-START SERVICES (part 1)
- Advanced Windows 7 Programming : Working in the Background - ADVANTAGES OF WORKING IN THE BACKGROUND
- Microsoft Visio 2010 : Importing Graphics (part 6) - Importing AutoCAD Drawings - Manipulating an Imported AutoCAD Drawing and Adding Furniture
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Trailers Game
- The Banner Saga 2 [PS4/XOne/PC] PC Launch Trailer
- Welkin Road [PC] Early Access Trailer
- 7th Dragon III Code: VFD [3DS] Character Creation Trailer
- Human: Fall Flat [PS4/XOne/PC] Coming Soon Trailer
- Battlefleet Gothic: Armada [PC] Eldar Trailer
- Neon Chrome [PS4/XOne/PC] PC Release Date Trailer
- Rocketbirds 2: Evolution [Vita/PS4] Launch Trailer
- Battleborn [PS4/XOne/PC] 12 Min Gameplay Trailer
- 7 Days to Die [PS4/XOne/PC] Console Trailer
- Total War: Warhammer [PC] The Empire vs Chaos Warriors Gameplay Trailer
- Umbrella Corps [PS4/PC] Mercenary Customization Trailer
- Niten [PC] Debut Trailer
- Stellaris [PC] Aiming for the Stars - Dev. Diary Trailer #1
- LawBreakers [PC] Dev Diary #4: Concept Art Evolutions
programming4us programming4us
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 windows Phone 7 windows Phone 8
programming4us programming4us
 
programming4us
Natural Miscarriage
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Game Trailer