File: vixmlconUnitsOfMeasure.htm

package info (click to toggle)
office2003-schemas 1.0%2Bds-1
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, forky, sid, trixie
  • size: 42,304 kB
  • sloc: javascript: 2,429; makefile: 29
file content (521 lines) | stat: -rw-r--r-- 17,444 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
<html dir="ltr"><head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META HTTP-EQUIV="assetid" CONTENT="HV83150825"><META NAME="lcid" CONTENT="1033"><title>Units of Measure</title><link rel="stylesheet" type="text/css" href="office10.css"><script type="text/javascript" language="Javascript" src="ExpCollapse.js"></script><script type="text/javascript" language="JavaScript" src="inline.js"></script></head><body><p id="ExpandAllLine" class="ExpFav"><a href="#" onclick="ExpandAll()" onkeypress="ExpandAll()" class="DropDown"><img id="picHeader" border="0" src="expandtri.gif" alt="Show All"><span id="ExpandAll">Show All</span></a></p><h1>Units of Measure</h1><p>In general, the formulas of cell elements that represent some numeric value (for example, the shape position, a dimension, or an angle) require a number-unit pair that consists of a number and the unit type that is needed to interpret the number. In DatadiagramML, however, even though the unit type information is stored, the value of an element is expressed in whatever the appropriate <i>internal units</i> are for that value. An internal unit is the unit of measure used  by Microsoft Office Visio to represent a particular type of value and is the value Visio writes to  DatadiagramML  files.</p><p>For example, values representing units that are a measurement of length are expressed as floating-point numbers in inches, because the inch is the internal unit used by Visio to represent length. Therefore, if an element has a value of "2 feet", its <b class="bterm">Unit</b> attribute is <code>'FT'</code> for "feet" and its value is the number 24.</p><p>Other units, such as date/time, are expressed as formatted strings. In the case of date/time, the unit is a string, such as "2004-12-20T23:00:00".</p><p>If a unit of measure is explicitly set, and if it is different from the default unit for the cell, Microsoft Office Visio writes out the <b class="bterm">Unit</b> attribute in DatadiagramML files. If no <b class="bterm">Unit</b> attribute is present in an element that represents a cell, Visio will use the default unit for that element.</p><p>For more information about how units of measure work in Visio, see <a target="_blank" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vissdk11/html/DSS_CTSShapeSheetBasics_1828.asp" id="HV82251828" lcid=" ">About units of measure</a> in the Microsoft Office Visio ShapeSheet Reference.</p><p>The following tables describe valid units of measure and provide information about internal units and how they are expressed in a DatadiagramML file. </p>
			<p><a href="#" class="DropDown" onclick="Outline2()" onkeypress="Outline2()"><img border="0" src="blueup.gif" alt="Show">Area, distance, and typographical units of measure</a></p>
			<div id="ExpCol" class="collapsed" border="0"><p>The values of these unit types are expressed as floating-point values in inches (internal units). Therefore, a value of "2 feet" would be expressed as: </p>
				<p><pre><code>&lt;Width Unit='FT'&gt;24&lt;/Width&gt;</code></pre></p>
				A value of "12 points" would be expressed as: <p><pre><code>&lt;Size&gt;0.16666666666667&lt;/Size&gt;</code></pre></p>
				<p><p><b>Note</b>  Units of measure that represent an area (acre and hectare) are expressed in square inches.</p> </p>
				<table>
					<tr>
						<th>
							<b class="bterm">Unit</b>
						</th>
						<th>
							<b class="bterm">Description</b>
						</th>
					</tr>
					<tr>
						<td>
							<p>AC</p>
						</td>
						<td>
							<p>Acre</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>C</p>
						</td>
						<td>
							<p>Ciceros</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>C_D</p>
						</td>
						<td>
							<p>Ciceros/didots</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>CM</p>
						</td>
						<td>
							<p>Centimeters</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>D</p>
						</td>
						<td>
							<p>Didots</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>DL</p>
						</td>
						<td>
							<p>Default length units</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>DP</p>
						</td>
						<td>
							<p>Default page units, as specified in the <b class="ui">Current page</b> box on the <b class="ui">Units</b> tab of the <b class="ui">Options</b> dialog box (<b class="ui">Tools </b>menu)</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>DT</p>
						</td>
						<td>
							<p>Default type units, as specified in the <b class="ui">Text </b> box on the <b class="ui">Units</b> tab of the <b class="ui">Options</b> dialog box (<b class="ui">Tools </b>menu)</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>F_I</p>
						</td>
						<td>
							<p>Feet/inches</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>FT</p>
						</td>
						<td>
							<p>Feet</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>HA</p>
						</td>
						<td>
							<p>Hectare</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>IN</p>
						</td>
						<td>
							<p>Inches</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>IN_F</p>
						</td>
						<td>
							<p>Inches<nbsp />— fractional</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>KM</p>
						</td>
						<td>
							<p>Kilometers</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>M</p>
						</td>
						<td>
							<p>Meters</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>MI</p>
						</td>
						<td>
							<p>Miles</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>MI_F</p>
						</td>
						<td>
							<p>Miles<nbsp />— fractional</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>MM</p>
						</td>
						<td>
							<p>Millimeters</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>NM</p>
						</td>
						<td>
							<p>Nautical miles</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>P</p>
						</td>
						<td>
							<p>Picas</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>PT</p>
						</td>
						<td>
							<p>Points</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>P_PT</p>
						</td>
						<td>
							<p>Picas/points</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>YD</p>
						</td>
						<td>
							<p>Yards</p>
						</td>
					</tr>
				</table>
			</div>
		
			<p><a href="#" class="DropDown" onclick="Outline2()" onkeypress="Outline2()"><img border="0" src="blueup.gif" alt="Show">Angular units of measure</a></p>
			<div id="ExpCol" class="collapsed" border="0">
				<p>Angle values are expressed as floating-point values in radians (internal units).</p>
				<p>Therefore, 180 fractional degrees appears as the following:</p>
				<p><pre><code>&lt;Angle Unit='DEG'&gt;3.1415926535898&lt;/Angle&gt;</code></pre></p>
				<table>
					<tr>
						<th>
							<b class="bterm">Unit</b>
						</th>
						<th>
							<b class="bterm">Description</b>
						</th>
					</tr>
					<tr>
						<td>
							<p>AD</p>
						</td>
						<td>
							<p>Degrees</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>AM</p>
						</td>
						<td>
							<p>Minutes</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>AS</p>
						</td>
						<td>
							<p>Seconds</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>DA</p>
						</td>
						<td>
							<p>Default angle units, as specified in the <b class="ui">Angle</b> box on the <b class="ui">Units</b> tab of the <b class="ui">Options</b> dialog box (<b class="ui">Tools </b>menu)</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>DEG</p>
						</td>
						<td>
							<p>Fractional degrees</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>RAD</p>
						</td>
						<td>
							<p>Radians</p>
						</td>
					</tr>
				</table>
			</div>
		
			<p><a href="#" class="DropDown" onclick="Outline2()" onkeypress="Outline2()"><img border="0" src="blueup.gif" alt="Show">Duration units of measure</a></p>
			<div id="ExpCol" class="collapsed" border="0">
				<p>Values of this unit type are expressed as floating-point values in elapsed days. (Days are the internal units for time). For example, the <b class="bterm">C</b> element below contains the elapsed days between the dates stored in the <b class="bterm">A</b> and <b class="bterm">B</b> elements.</p>
				<pre><code>&lt;A Unit='DATE' F='Date(1969,9,12)'&gt;1969-09-12T00:00:00&lt;/A&gt;
&lt;B Unit='DATE' F='Date(1969,9,13)'&gt;1969-09-13T00:00:00&lt;/B&gt;
&lt;C Unit='ED' F='Scratch.B1-Scratch.A1'&gt;1&lt;/C&gt;
					</code></pre><table>
					<tr>
						<th>
							<b class="bterm">Unit</b>
						</th>
						<th>
							<b class="bterm">Description</b>
						</th>
					</tr>
					<tr>
						<td>
							<p>DE</p>
						</td>
						<td>
							<p>Default duration units, as specified in the <b class="ui">Duration</b> box on the <b class="ui">Units</b> tab of the <b class="ui">Options</b> dialog box (<b class="ui">Tools </b>menu)</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>ED</p>
						</td>
						<td>
							<p>Elapsed days</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>EH</p>
						</td>
						<td>
							<p>Elapsed hours</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>EM</p>
						</td>
						<td>
							<p>Elapsed minutes</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>ES</p>
						</td>
						<td>
							<p>Elapsed seconds</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>EW</p>
						</td>
						<td>
							<p>Elapsed weeks</p>
						</td>
					</tr>
				</table>
			</div>
		
			<p><a href="#" class="DropDown" onclick="Outline2()" onkeypress="Outline2()"><img border="0" src="blueup.gif" alt="Show">Date/time units of measure</a></p>
			<div id="ExpCol" class="collapsed" border="0">
				<p>Values of this unit type are expressed as string values written out in the ISO 8601 format:</p>
				<p><code>yyyy-mm-ddThh:mm[:ss[.ss]]</code></p>
				<p><b>Notes</b></p><ul><li>The uppercase letter "T" is a required delimiter between the date portion and the time portion.</li><li>The date portion must be complete: a four-digit year, a dash, a two-digit month, a dash, and a two-digit day.</li><li>The time portion must include a two-digit hour (based on a 24-hour clock), a colon, and a two-digit minute. The time can optionally include another colon and two-digit seconds. After the optional seconds, there can be a dot, followed by digits representing fractional seconds. Fractional seconds can be as precise as nanoseconds.</li></ul>
				
				
				<p>For example: </p><p><code>&lt;A
						Unit='DATE'&gt;2004-09-12T12:34:12.0543&lt;/A&gt;</code></p>
				<table>
					<tr>
						<th>
							<b class="bterm">Unit</b>
						</th>
						<th>
							<b class="bterm">Description</b>
						</th>
					</tr>
					<tr>
						<td>
							<p>DATE</p>
						</td>
						<td>
							<p>Date and time</p>
						</td>
					</tr>
				</table>
			</div>
		
			<p><a href="#" class="DropDown" onclick="Outline2()" onkeypress="Outline2()"><img border="0" src="blueup.gif" alt="Show">Miscellaneous units of measure</a></p>
			<div id="ExpCol" class="collapsed" border="0">
				<p>Values of these unit types are expressed as strings. The following table provides an example of each unit type.</p>
				<table>
					<tr>
						<th>
							<b class="bterm">Unit</b>
						</th>
						<th>
							<b class="bterm">Description</b>
						</th>
						<th>
							<b class="bterm">Example</b>
						</th>
					</tr>
					<tr>
						<td>
							<p>BOOL</p>
						</td>
						<td>
							<p>Boolean</p>
						</td>
						<td>
							<p>An integer that can be 0 (FALSE) or 1 (TRUE). For example: <pre><code>&lt;A Unit='BOOL'&gt;1&lt;/A&gt;</code></pre></p>
						</td>
					</tr>
					<tr>
						<td>
							<p>COLOR</p>
						</td>
						<td>
							<p>A color value</p>
						</td>
						<td>
							<p>A color value is specified by its red, green, and blue (RGB) components or its index within the document color table. The value can appear as a hash (#) followed by a 6-digit hexadecimal number, or as an integer value between 0 and 23. These integer values are the same as those displayed in the Visio user interface, for example in the <b class="ui">Color</b> list in the <b class="ui">Fill</b> dialog box (<b class="ui">Format</b> menu).</p>
							<p>For example, the color green would appear as follows: <pre><code>&lt;A Unit='COLOR'&gt;#00FF00&lt;/A&gt;</code></pre></p>
							<p>A color at index 3 of the <b class="bterm">ColorEntry</b> element would appear as follows: <pre><code>&lt;A Unit='COLOR'&gt;3&lt;/A&gt;</code></pre></p>
						</td>
					</tr>
					<tr>
						<td>
							<p>CY</p>
						</td>
						<td>
							<p>Currency</p>
						</td>
						<td>
							<p>&lt;A Unit='CY'&gt;<i>####</i>.<i>####</i><i>xxx</i>&lt;/A&gt;</p>
							<p>where <i>####</i>.<i>####</i> is the amount and <i>xxx</i> is the ISO 4217 currency symbol. For example, $234.45 in U.S. dollars would appear as follows: <pre><code>&lt;A Unit='CY'&gt;234.4500USD&lt;/A&gt;</code></pre></p>
						</td>
					</tr>
					<tr>
						<td>
							<p>GUID</p>
						</td>
						<td>
							<p>A globally unique identifier</p>
						</td>
						<td>
							<p>A string that represents a globally unique identifier (GUID). For example: <pre><code>&lt;A Unit='GUID'&gt;{4A1A0046-7A0D-4395-99CA-9939AD2D567E}&lt;/A&gt;</code></pre></p>
						</td>
					</tr>
					<tr>
						<td>
							<p>MULTIDIM</p>
						</td>
						<td>
							<p>Multidimensional value</p>
						</td>
						<td>
							<p>&lt;A Unit='MULTIDIM'&gt;<i>###</i> <i>unit</i>^<i>pow</i>&lt;/A&gt;</p>
							<p>where <i>###</i> is a floating-point value, <i>unit</i> is one of the floating-point units of measure (area, angle, distance, duration, or typographical) as previously described, and <i>pow</i> is a power. For example, 12 cubic feet would appear as: <pre><code>&lt;A Unit='MULTIDIM'&gt;1728 IN^3&lt;/A&gt;</code></pre></p>
						</td>
					</tr>
					<tr>
						<td>
							<p>NUM</p>
						</td>
						<td>
							<p>Number</p>
						</td>
						<td>
							<p>Expressed as a floating-point value.</p>
						</td>
					</tr>
					<tr>
						<td>
							<p>NURBS</p>
						</td>
						<td>
							<p>NURBS curve data</p>
						</td>
						<td>
							<p>Expressed in the same format as a formula with a <a target="_blank" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vissdk11/html/DSS_Functions_(M-P)_1579.asp" id="HV82251579" lcid=" ">NURBS</a> (nonuniform rational B-spline) function:</p>
							<p>NURBS(<i>knotLast</i>, <i>degree</i>, <i>xType</i>, <i>yType</i>, <i>x1</i>, <i>y1</i>, <i>knot1</i>, <i>weight1</i>, ...)</p>
							<p>For example, <pre><code>&lt;E Unit='NURBS'&gt;NURBS(2.3,2,0,0,0.6,-1.1,0,1)&lt;/E&gt;</code></pre></p>
						</td>
					</tr>
					<tr>
						<td>
							<p>PER</p>
						</td>
						<td>
							<p>Percent</p>
						</td>
						<td>
							<p>Expressed as a floating-point value between 0 and 1. For example, 50% would appear as: <pre><code>&lt;A Unit='PER'&gt;0.5&lt;/A&gt;</code></pre></p>
						</td>
					</tr>
					<tr>
						<td>
							<p>PNT</p>
						</td>
						<td>
							<p>2-D coordinate</p>
						</td>
						<td>
							<p>&lt;A Unit='PNT'&gt;PNT(<i>x
									unit</i>, <i>y unit</i> )&lt;/A&gt;</p>
							<p>where <i>x</i> and <i>y</i> are floating-point values and <i>unit</i> is one of the floating-point units of measure (area, angle, distance, duration, or typographical) described earlier.</p>
							<p>For example, <pre><code>&lt;A Unit='PNT'&gt;PNT(2,3)&lt;/A&gt;</code></pre></p>
						</td>
					</tr>
					<tr>
						<td>
							<p>POLYLINE</p>
						</td>
						<td>
							<p>Polyline point data</p>
						</td>
						<td>
							<p>Expressed in the same format as a formula with a <a target="_blank" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vissdk11/html/DSS_Functions_(M-P)_1576.asp" id="HV82251576" lcid=" ">POLYLINE</a> function:</p>
							<p>POLYLINE(<i>xType</i>, <i>yType</i>, <i>x1</i>, <i>y1</i>...)</p>
							<p>For example, <pre><code>&lt;E Unit='POLYLINE'&gt;POLYLINE(0,0,0,1)&lt;/E&gt;</code></pre></p>
						</td>
					</tr>
					<tr>
						<td>
							<p>STR</p>
						</td>
						<td>
							<p>String</p>
						</td>
						<td>
							<p>&lt;A Unit='STR'&gt;<i>some string</i>&lt;/A&gt;</p>
							<p>where <i>some string</i> is a PCDATA string.</p>
						</td>
					</tr>
				</table>
			</div>
		<center><a href="XMLSchemaCopyright_HV01147162.htm">&copy;2003-2004 Microsoft Corporation. All rights reserved.</a>  

Permission to copy, display and distribute this document is available at: <a 

href="http://r.office.microsoft.com/r/rlidAWSContentRedir?AssetID=XT010988631033&amp;CTT=11&amp;Origin=HV011232471033" 

target="_new">http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp</a></center></body></html>