Prerequisites
To upload 3D models, you need a service account with an API key with thethreed:write capability for your CDF project. See Manage access for services to learn more.
You also need:
- Your CDF project name. You will use this as the [projectname] below.
- The file name(s) of the model(s) you will be uploading. You will use this as the [filename] below.
Upload 3D models
1
Create a model that can hold several revisions
2
Copy and make a note of the id field
Copy and make a note of the
id field in the response. You will use this as the [modelId] below.3
Create a file placeholder to make the file available for processing later
4
Copy and make a note of the id field and uploadUrl
Copy and make a note of the
id field in the response. You will use this as the [fileId] below. Also, copy and make a note of uploadUrl. You will use this as the [uploadUrl] below.5
Upload the file
6
Create a versioned model and link the file from the first step to the revision
This also starts the processing of the model.API reference: /api#tag/3D-Model-Revisions/operation/create3DRevisions
7
Monitor the processing of the model
API reference: /api#tag/3D-Model-Revisions/operation/get3DRevision