-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Pri2doc-bugfeedback is about something that is out of date, unclear, confusing, or broken in the articlefeedback is about something that is out of date, unclear, confusing, or broken in the articleperipherals-sensors-and-power/techuwp/prod
Description
The example for repairing a model reads:
private async void OnFixClick(object sender, RoutedEventArgs e) {
// read the loaded file's data as a data stream
IRandomAccessStream fileStream = await file.OpenAsync(FileAccessMode.Read);
// assign a Printing3DModel to this data stream
Printing3DModel model = await package.LoadModelFromPackageAsync(fileStream);
// use Printing3DModel's repair function
OutputTextBlock.Text = "repairing model";
var data = model.RepairAsync();
then states:
The Printing3DModel object is now repaired and printable. Use SaveModelToPackageAsync to assign the model to the Printing3D3MFPackage object that you declared when creating the class.
won't data actually be a Task of some sort, since the call was not awaited?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: a82d5c7f-911f-c344-1e31-0a09f1c95efe
- Version Independent ID: 4af57232-f969-f74e-3032-73acd821721c
- Content: 3D printing from your app - UWP applications
- Content Source: windows-apps-src/devices-sensors/3d-print-from-app.md
- Product: uwp
- Technology: peripherals-sensors-and-power
- GitHub Login: @Karl-Bridge-Microsoft
- Microsoft Alias: kbridge
Metadata
Metadata
Assignees
Labels
Pri2doc-bugfeedback is about something that is out of date, unclear, confusing, or broken in the articlefeedback is about something that is out of date, unclear, confusing, or broken in the articleperipherals-sensors-and-power/techuwp/prod