IXpsDocumentPackageTarget3D::GetXpsOMPackageWriter3D method (xpsobjectmodel_2.h)

Gets a new IXpsOMPackageWriter3D object for the document package.

Syntax

HRESULT GetXpsOMPackageWriter3D(
  [in]           IOpcPartUri           *documentSequencePartName,
  [in, optional] IOpcPartUri           *discardControlPartName,
  [in]           IOpcPartUri           *modelPartName,
  [in]           IStream               *modelData,
  [out]          IXpsOMPackageWriter3D **packageWriter
);

Parameters

[in] documentSequencePartName

The root part of XPS payload.

[in, optional] discardControlPartName

The discard control part for the XPS payload.

[in] modelPartName

Name of the part which will hold the 3D model. The part’s content type is “application/vnd.ms-package.3dmanufacturing-3dmodel+xml”. It is linked from package root with relationship type “http://schemas.microsoft.com/3dmanufacturing/2013/01/3dmodel” .

[in] modelData

A readable stream which holds 3D model description. The model description may be UTF16 encoding of XML document, but for XPS OM and XpsPrint, this is a BLOB passing through. The GetXpsOMPackageWriter3D method attempts to move the provided stream’s read pointer to the beginning of the stream, but the method call will not fail if the stream does not support the Seek method.

[out] packageWriter

Returns the writer which may be used to send XPS content and textures for the 3D model.

Return value

Returns the appropriate HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 R2 [desktop apps | UWP apps]
Target Platform Windows
Header xpsobjectmodel_2.h

See also

IXpsDocumentPackageTarget3D