Printing3D3MFPackage Printing3D3MFPackage Printing3D3MFPackage Printing3D3MFPackage Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Represents a 3D Manufacturing Format (3MF) package.

public : sealed class Printing3D3MFPackage : IPrinting3D3MFPackage, IPrinting3D3MFPackage2public sealed class Printing3D3MFPackage : IPrinting3D3MFPackage, IPrinting3D3MFPackage2Public NotInheritable Class Printing3D3MFPackage Implements IPrinting3D3MFPackage, IPrinting3D3MFPackage2// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Graphics.Printing3D.Printing3DContract (introduced v1)

Remarks

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

Constructors

Printing3D3MFPackage() Printing3D3MFPackage() Printing3D3MFPackage() Printing3D3MFPackage()

Creates a Printing3D3MFPackage object.

public : Printing3D3MFPackage()public Printing3D3MFPackage()Public Sub New()// You can use this method in JavaScript.

Properties

Compression Compression Compression Compression

Prerelease. 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.

public : Printing3DPackageCompression Compression { get; set; }public Printing3DPackageCompression Compression { get; set; }Public ReadWrite Property Compression As Printing3DPackageCompression// You can use this property in JavaScript.
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Graphics.Printing3D.Printing3DContract (introduced v4)

ModelPart ModelPart ModelPart ModelPart

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

public : IRandomAccessStream ModelPart { get; set; }public IRandomAccessStream ModelPart { get; set; }Public ReadWrite Property ModelPart As IRandomAccessStream// You can use this property in JavaScript.
Value
IRandomAccessStream IRandomAccessStream IRandomAccessStream IRandomAccessStream

An XML stream to the 3D model in the 3MF package.

PrintTicket PrintTicket PrintTicket PrintTicket

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

public : IRandomAccessStream PrintTicket { get; set; }public IRandomAccessStream PrintTicket { get; set; }Public ReadWrite Property PrintTicket As IRandomAccessStream// You can use this property in JavaScript.
Value
IRandomAccessStream IRandomAccessStream IRandomAccessStream IRandomAccessStream

A stream to the print ticket in the 3MF package.

Textures Textures Textures Textures

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

public : IVector<Printing3DTextureResource> Textures { get; }public IList<Printing3DTextureResource> Textures { get; }Public ReadOnly Property Textures As IList<Printing3DTextureResource>// You can use this property in JavaScript.
Value
IVector<Printing3DTextureResource> IList<Printing3DTextureResource> IList<Printing3DTextureResource> IList<Printing3DTextureResource>

The textures in the 3MF package, of type Printing3DTextureResource.

Thumbnail Thumbnail Thumbnail Thumbnail

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

public : Printing3DTextureResource Thumbnail { get; set; }public Printing3DTextureResource Thumbnail { get; set; }Public ReadWrite Property Thumbnail As Printing3DTextureResource// You can use this property in JavaScript.
Value
Printing3DTextureResource Printing3DTextureResource Printing3DTextureResource Printing3DTextureResource

A thumbnail image that represents the contents of the 3MF package.

Methods

LoadAsync(IRandomAccessStream) LoadAsync(IRandomAccessStream) LoadAsync(IRandomAccessStream) LoadAsync(IRandomAccessStream)

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

public : static IAsyncOperation<Printing3D3MFPackage> LoadAsync(IRandomAccessStream value)public static IAsyncOperation<Printing3D3MFPackage> LoadAsync(IRandomAccessStream value)Public Static Function LoadAsync(value As IRandomAccessStream) As IAsyncOperation( Of Printing3D3MFPackage )// You can use this method in JavaScript.
Parameters
Returns

LoadModelFromPackageAsync(IRandomAccessStream) LoadModelFromPackageAsync(IRandomAccessStream) LoadModelFromPackageAsync(IRandomAccessStream) LoadModelFromPackageAsync(IRandomAccessStream)

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

public : IAsyncOperation<Printing3DModel> LoadModelFromPackageAsync(IRandomAccessStream value)public IAsyncOperation<Printing3DModel> LoadModelFromPackageAsync(IRandomAccessStream value)Public Function LoadModelFromPackageAsync(value As IRandomAccessStream) As IAsyncOperation( Of Printing3DModel )// You can use this method in JavaScript.
Parameters
Returns

SaveAsync() SaveAsync() SaveAsync() SaveAsync()

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

public : IAsyncOperation<IRandomAccessStream> SaveAsync()public IAsyncOperation<IRandomAccessStream> SaveAsync()Public Function SaveAsync() As IAsyncOperation( Of IRandomAccessStream )// You can use this method in JavaScript.
Returns

SaveModelToPackageAsync(Printing3DModel) SaveModelToPackageAsync(Printing3DModel) SaveModelToPackageAsync(Printing3DModel) SaveModelToPackageAsync(Printing3DModel)

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

public : IAsyncAction SaveModelToPackageAsync(Printing3DModel value)public IAsyncAction SaveModelToPackageAsync(Printing3DModel value)Public Function SaveModelToPackageAsync(value As Printing3DModel) As IAsyncAction// You can use this method in JavaScript.
Parameters
value
Printing3DModel Printing3DModel Printing3DModel Printing3DModel

The 3D model to be saved to the 3MF package.

Returns

The results of the operation.

See Also