You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4. Select the **Code** tab, select a component from the list, and then select **Import**.<!--note from editor: Here and in step 5, I deleted "sample" because maybe the reader is adding a component they truly want, not necessarily a sample.-->
75
+
4. Select the **Code** tab, select a component from the list, and then select **Import**.
76
76
77
77
> [!div class="mx-imgBorder"]
78
78
> 
@@ -83,9 +83,9 @@ After you enable the Power Apps component framework feature in your environment,
83
83
> 
84
84
85
85
> [!NOTE]
86
-
> You can also add components by selecting **Insert** > **Custom** > **Import component**. This option will be removed in a future release, so we suggest using the flow described above.<!--note from editor: Recommend deleting this unless there's a mechanism in place to revisit this topic in tandem with the future release. This is especially not a good candidate for note format, since it draws extra attention to this step that won't work before long.-->
86
+
> You can also add components by selecting **Insert** > **Custom** > **Import component**. This option will be removed in a future release, so we suggest using the flow described above.
87
+
>
87
88
88
-
<!--note from editor: The following isn't really a step, so I removed the numbering and indent. -->
89
89
On the **Properties** tab, you'll notice the code component properties are displayed.
90
90
91
91
> [!div class="mx-imgBorder"]
@@ -107,10 +107,10 @@ On the **Properties** tab, you'll notice the code component properties are displ
107
107
108
108
## Update existing code components
109
109
110
-
Whenever you update the code components and want to see the runtime changes, you need to change<!--note from editor: I don't think "bump" is going to necessarily be well-understood by non-native English readers. Maybe this should be "increase"?--> the `version` property in the manifest file. We recommend that you change the version of the component whenever you make changes.
110
+
Whenever you update the code components and want to see the runtime changes, you need to change the `version` property in the manifest file. We recommend that you change the version of the component whenever you make changes.
111
111
112
112
> [!NOTE]
113
-
> Existing code components are updated only when the app is closed or reopened in Power Apps Studio. When you reopen the app, it asks you to update the code components. Simply deleting or adding code components back into the app won't update the components.
113
+
> Existing code components are updated only when the app is closed or reopened in Power Apps Studio. When you reopen the app, it asks you to update the code components. Simply deleting or adding code components back into the app won't update the components. Publish all the customizations in the updated solution first, otherwise updates made to the code component won't appear.
114
114
115
115
### See also
116
116
@@ -119,4 +119,4 @@ Whenever you update the code components and want to see the runtime changes, you
119
119
[Learn Power Apps component framework](/learn/paths/use-power-apps-component-framework)
> You can export this data to an Excel worksheet using this query and the instructions provided in this blog post: [Find Messages and tables eligible for plug-ins using the Dataverse](https://powerapps.microsoft.com/blog/find-messages-and-entities-eligible-for-plug-ins-using-the-data-platform/)
68
+
> You can export this data to an Excel worksheet using this query and the instructions provided in this blog post: [Find Messages and tables eligible for plug-ins using the Dataverse](https://powerapps.microsoft.com/blog/find-messages-and-entities-eligible-for-plug-ins-using-the-common-data-service/)
69
69
70
70
71
71
You can also use the following FetchXML to retrieve this information. The [FetchXML Builder](https://fxb.xrmtoolbox.com) is a useful tool to execute this kind of query.
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/mixed-reality-component-measure-distance.md
+14-11Lines changed: 14 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.service: powerapps
6
6
ms.topic: conceptual
7
7
ms.custom: canvas
8
8
ms.reviewer: tapanm
9
-
ms.date: 3/25/2021
9
+
ms.date: 01/03/2021
10
10
ms.subservice: canvas-maker
11
11
ms.author: anuitz
12
12
search.audienceType:
@@ -16,12 +16,13 @@ search.app:
16
16
contributors:
17
17
- tapanm-msft
18
18
- anuitz
19
+
- Alex-MSFT
19
20
---
20
21
# Take measurements in mixed reality
21
22
22
-
You can use the **Measure in MR** control in your app to let users measure distance, area, and volume. During measurement, you create two-dimensional and three-dimensional polygons that can be used to confirm how a certain-sized object would fit within a space.
23
+
You can use the **Measure in MR** control in your app to let users measure distance, area, and volume. During the measurement, you create two-dimensional and three-dimensional polygons that can be used to confirm how a certain-sized object would fit within a space.
23
24
24
-
The control creates a button in your app. When app users click the button, it shows a live camera feed of the device. App users can then identify a starting point and then individual points to measure from. The distances of measured segments are shown directly on the live camera feed.
25
+
The control creates a button in your app. When app users select the button, it shows a live camera feed of the device. App users can then identify a starting point and then individual points to measure from. The distances of measured segments are shown directly on the live camera feed.
25
26
26
27
27
28
:::image type="content" source="./media/augmented-overview/measure-in-mixed-reality.png" alt-text="Photo showing a corner between two construction walls being measured with a mobile device.":::
@@ -49,7 +50,7 @@ With an app open for editing in [Power Apps Studio](https://create.powerapps.com
49
50
:::image type="content" source="./media/augmented-measure/augmented-measure.png" alt-text="Select Measure in MR.":::
50
51
51
52
52
-
You can modify the control with a number of properties.
53
+
You can modify the control with many properties.
53
54
54
55
55
56
### Properties
@@ -58,7 +59,7 @@ The following properties are on the control's **Measure in MR** pane on the **Pr
58
59
59
60
:::image type="content" source="./media/augmented-measure/augmented-measure-properties.png" alt-text="The Measure in MR pane.":::
60
61
61
-
Note that some properties are only available under **More options** in the **Advanced** tab on the **Measure in MR** pane.
62
+
Some properties are only available under **More options** in the **Advanced** tab on the **Measure in MR** pane.
62
63
63
64
Property | Description | Type | Location
64
65
| - | - | - | -
@@ -67,8 +68,10 @@ Measurement type | What type of measurement the user can make, whether point-to-
67
68
Box Draw | Lock captured measurements to rectangular shapes by specifying only a width and a depth. | Boolean | **Properties** (also in **Advanced**)
68
69
Expected Measurements (Items) | Data source (table) that lists a predefined set of measurements that you want the user to capture during a single session. You can map the labels you want to use for each measurement by using the _ItemsLabels_ property. | Not applicable | **Properties** (also in **Advanced**)
69
70
ItemsLabels | A column in _Items_ with the strings you want to use as the labels for the measurements you want users to capture. | ColumnName | **Advanced**
70
-
Measurements | Table describing the measured distances, volumes and areas, composed of:<ul><li>Label - String that identifies the given measurement</li><li>Id - Number that uniquely identifies this measurement</li><li>Units - String describing the base unit of this measurement</li><li>Height - Number representing the height of the captured volume, or 0 if not a completed volume or 2D area</li><li>Length - Number representing the total length of the perimeter or path of the measurement </li><li>BoundingWidth - Number representing minimum width in units that bounds the shape </li><li>BoundingDepth - Number representing the minimum depth in units that bounds the shape </li><li>Area - Number representing the estimated area of the enclosed shape in units squared </li><li>Volume - Number representing the estimated volume of the enclosed shape in units cubed </li><li>Segments - Table describing all segments in the given measurement object with the following properties:<ul><li>Length - Number representing the total distance of a given segment in the given units of measure (for example, .52)</li><li>DirectionX - Number specifying the X direction of the segment in world space (for example, 0.5)</li><li>DirectionY - Number specifying the Y direction of the measurement in world space (typically 0)</li><li>DirectionZ - Number specifying the Z direction of the measurement in world space (for example, 0.5)</li></ul></li></ul> | Table | Not applicable (output property only)
71
-
Photos | The photos captured during the mixed reality session.<br/>You can [upload the mixed-reality photos to OneDrive and show them in a gallery](mixed-reality-take-upload-photos.md). | Not applicable | Not applicable (output property only)
71
+
ItemsMeasurementType | (Optional) A column in _Items_ with strings that specify the measurement type overrides (distance, area, volume, freeform, or blank) for the measurements you want users to capture. | ColumnName | **Advanced**
72
+
ItemsBoxDraw | (Optional) A column in _Items_ that specifies the Box Draw overrides (true, false, or blank) for the measurements you want users to capture. | ColumnName | **Advanced**
73
+
Measurements | Table describing the measured distances, volumes, and areas, composed of:<ul><li>Label - String that identifies the given measurement</li><li>Id - Number that uniquely identifies this measurement</li><li>Units - String describing the base unit of this measurement</li><li>Height - Number representing the height of the captured volume, or 0 if not a completed volume or 2D area</li><li>Length - Number representing the total length of the perimeter or path of the measurement </li><li>BoundingWidth - Number representing minimum width in units that bounds the shape </li><li>BoundingDepth - Number representing the minimum depth in units that bounds the shape </li><li>Area - Number representing the estimated area of the enclosed shape in units squared </li><li>Volume - Number representing the estimated volume of the enclosed shape in units cubed </li><li>Segments - Table describing all segments in the given measurement object with the following properties:<ul><li>Length - Number representing the total distance of a given segment in the given units of measure (for example, .52)</li><li>DirectionX - Number specifying the X direction of the segment in world space (for example, 0.5)</li><li>DirectionY - Number specifying the Y direction of the measurement in world space (typically 0)</li><li>DirectionZ - Number specifying the Z direction of the measurement in world space (for example, 0.5)</li></ul></li></ul> | Table | Not applicable (output property only)
74
+
Photos | The photos captured during the mixed reality session.<ul><li>ImageURI - String indicating the uniform resource identifier (URI) where the saved photo is stored.</li><li>MimeType - String describing the Multipurpose Internet Mail Extensions (MIME) type for the photo (always image/jpeg).</li><li>FileSize - Number describing size of the photo in bytes.</li><li>Label - String that identifies the measurement associated with this photo or "" if unassociated. This corresponds to the Label property in the returned Measurements Data Set.</li><br/>You can [upload the mixed-reality photos to OneDrive and show them in a gallery](mixed-reality-take-upload-photos.md). | Not applicable | Not applicable (output property only)
72
75
OnMixedRealitySelect | Behavior that is triggered when exiting the MR experience with new results. | Defined action | **Advanced**
73
76
OnChange | Behavior that is triggered when any property on the button is changed. | Defined action | **Advanced**
74
77
@@ -117,19 +120,19 @@ OnChange | Behavior that is triggered when any property on the button is changed
117
120
118
121
**[PaddingTop](./controls/properties-size-___location.md)** – The distance between text in a control and the top edge of that control.
119
122
120
-
**[PressedBorderColor](./controls/properties-color-border.md)** – The color of a control's border when the user taps or clicks that control.
123
+
**[PressedBorderColor](./controls/properties-color-border.md)** – The color of a control's border when the user selects that control.
121
124
122
-
**[PressedColor](./controls/properties-color-border.md)** – The color of text in a control when the user taps or clicks that control.
125
+
**[PressedColor](./controls/properties-color-border.md)** – The color of text in a control when the user selects that control.
123
126
124
-
**[PressedFill](./controls/properties-color-border.md)** – The background color of a control when the user taps or clicks that control.
127
+
**[PressedFill](./controls/properties-color-border.md)** – The background color of a control when the user selects that control.
**[TextAlignment](./controls/properties-text.md)** – The alignment of the text: **Center**, **Left**, **Right**, or **Justify**
129
132
130
133
**[Tooltip](./controls/properties-core.md)** – Explanatory text that appears when the user hovers over a control.
131
134
132
-
**[VerticalAlign](./controls/properties-text.md)** – The ___location of text on a control in relation to the vertical center of that control: **Middle**, **Top**, or **Bottom**
135
+
**[VerticalAlign](./controls/properties-text.md)** – The ___location of text on a control in relation to the vertical center of that control: **Middle**, **Top**, or **Bottom**.
133
136
134
137
**[Visible](./controls/properties-core.md)** – Whether a control appears or is hidden.
0 commit comments