[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Annotations.Model3DAnnotation.Set3DContent

Set3DContent Method

Set3DContent(Stream, IPdfName)

Sets the 3D stream content for this annotation.

Declaration
public void Set3DContent(Stream stream, IPdfName format)
Public Sub Set3DContent(stream As Stream, format As IPdfName)
Parameters
Type Name Description
Stream stream

The Stream object containing the 3D model data. Common formats include U3D (Universal 3D) and PRC (Product Representation Compact).

IPdfName format

The IPdfName object specifying the format of the 3D data. Use values from the Model3DStreamFormat static class (e.g., U3D or PRC).

Remarks

This method creates a new Model3DStream with the provided stream data and format, replacing any existing 3D stream in the annotation.

Exceptions
Type Condition
ArgumentNullException

Thrown when stream is null.