Share via


Printing3D3MFPackage Class

Definition

Represents a 3D Manufacturing Format (3MF) package.

public ref class Printing3D3MFPackage sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Graphics.Printing3D.Printing3DContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Graphics.Printing3D.Printing3DContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class Printing3D3MFPackage final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Graphics.Printing3D.Printing3DContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Graphics.Printing3D.Printing3DContract")]
class Printing3D3MFPackage final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Graphics.Printing3D.Printing3DContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Graphics.Printing3D.Printing3DContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class Printing3D3MFPackage
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Graphics.Printing3D.Printing3DContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Graphics.Printing3D.Printing3DContract")]
public sealed class Printing3D3MFPackage
function Printing3D3MFPackage()
Public NotInheritable Class Printing3D3MFPackage
Inheritance
Object Platform::Object IInspectable Printing3D3MFPackage
Attributes

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.Graphics.Printing3D.Printing3DContract (introduced in v1.0)

Remarks

This API is designed for use with 3D Manufacturing Format (3MF) packages. For more info about 3MF, see the 3MF Specification.

Version history

Windows version SDK version Value added
1709 16299 Compression

Constructors

Printing3D3MFPackage()

Creates a Printing3D3MFPackage object.

Properties

Compression

Gets and sets the intended file compression level for this 3MF package. This is taken into account when the Printing3D3MFPackage instance is converted to a 3MF file.

ModelPart

Gets or sets an XML stream to the 3D model in the 3D Manufacturing Format (3MF) package.

PrintTicket

Gets or sets a stream to the print ticket in the 3D Manufacturing Format (3MF) package.

Textures

Gets or sets the textures in the 3D Manufacturing Format (3MF) package.

Thumbnail

Gets or sets a thumbnail image that represents the contents of the 3D Manufacturing Format (3MF) package.

Methods

LoadAsync(IRandomAccessStream)

Creates a Printing3D3MFPackage object from a 3D Manufacturing Format (3MF) file stream.

LoadModelFromPackageAsync(IRandomAccessStream)

Creates a Printing3DModel object from a 3D Manufacturing Format (3MF) file stream.

SaveAsync()

Saves the Printing3D3MFPackage object to a 3D Manufacturing Format (3MF) file stream.

SaveModelToPackageAsync(Printing3DModel)

Saves the specified 3D model to the 3D Manufacturing Format (3MF) package.

Applies to

See also