Home > @modelo.io/api > Model > generate3DPDF

Model.generate3DPDF() function

Generate a 3D PDF file from a model. The exporting takes a while and this function returns immediately when the requests is sent to backend server succesfully. One needs to call get3DPDFURL to poll the exported 3D PDF's download URL.

Signature:

function generate3DPDF(modelId: string): Promise<number>;

Parameters

ParameterDescription
modelIdThe model id

Returns:

Promise<number>

a promise contains an asset id