Add value to your app or a game with 3D printing
// Create a file to store the stream (STL, OBJ, PLY, WRL, 3MF) StorageFolder localFolder = ApplicationData.Current.LocalFolder; var outputfile = await localFolder.GetFileAsync("output.stl”); var options = new Windows.System.LauncherOptions(); // Set 3d Builder as the target app options.TargetApplicationPackageFamilyName = "Microsoft.3DBuilder_8wekyb3d8bbwe"; // Launch 3d Builder with the 3MF or STL file generated from your app var success = await Windows.System.Launcher.LaunchFileAsync(outputfile, options);
// Create a file to store the stream StorageFolder localFolder = ApplicationData.Current.LocalFolder; // any image file:.png,.jpg,.tga var outputfile = await localFolder.GetFileAsync(“Neon Hitch.png"); var options = new Windows.System.LauncherOptions(); // Set 3d Builder as the target app options.TargetApplicationPackageFamilyName = "Microsoft.3DBuilder_8wekyb3d8bbwe"; // Launch 3d Builder with any 2D image var success = await Windows.System.Launcher.LaunchFileAsync(outputfile, options);
Spec: