Required capabilities:
threedAcl:READ
Retrieves a list of all revisions of a model. This operation supports pagination. You can also filter revisions if they are marked as published or not by using the query param published.
A list of revisions of the model.
The response for a failed request.
const revisions3D = await client.revisions3D.list(324566546546346);
{- "items": [
- {
- "id": 1000,
- "fileId": 1000,
- "published": false,
- "rotation": [
- 0,
- 0,
- 0
], - "scale": [
- 1,
- 1,
- 1
], - "translation": [
- 0,
- 0,
- 0
], - "camera": {
- "target": [
- 0,
- 0,
- 0
], - "position": [
- 0,
- 0,
- 0
]
}, - "status": "Done",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "thumbnailThreedFileId": 1000,
- "assetMappingCount": 0,
- "createdTime": 0
}
], - "nextCursor": "string"
}Required capabilities:
threedAcl:CREATE
Creates revision(s) and starts processing job(s).
Check beta API documentation for information about additional options.
Hybrid projects: Use the CreateRevision3DClassicAndHybridBody to create revisions.
DataModelOnly: Please use the 3d/jobs endpoint (Beta for now) to create the revision(s) and start jobs. CreateRevision3DDmsOnlyBody will eventually be deprecated.
A list of created revisions.
The response for a failed request.
{- "items": [
- {
- "published": false,
- "rotation": [
- 0,
- 0,
- 0
], - "scale": [
- 1,
- 1,
- 1
], - "translation": [
- 0,
- 0,
- 0
], - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "camera": {
- "target": [
- 0,
- 0,
- 0
], - "position": [
- 0,
- 0,
- 0
]
}, - "fileId": 0
}
]
}{- "items": [
- {
- "id": 1000,
- "fileId": 1000,
- "published": false,
- "rotation": [
- 0,
- 0,
- 0
], - "scale": [
- 1,
- 1,
- 1
], - "translation": [
- 0,
- 0,
- 0
], - "camera": {
- "target": [
- 0,
- 0,
- 0
], - "position": [
- 0,
- 0,
- 0
]
}, - "status": "Done",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "thumbnailThreedFileId": 1000,
- "assetMappingCount": 0,
- "createdTime": 0
}
]
}Required capabilities:
threedAcl:UPDATE
Corresponding revisions after applying the updates.
The response for a failed request.
{- "items": [
- {
- "id": 1,
- "update": {
- "published": {
- "set": true
}, - "rotation": {
- "set": [
- 0,
- 0,
- 0
]
}, - "scale": {
- "set": [
- 0,
- 0,
- 0
]
}, - "translation": {
- "set": [
- 0,
- 0,
- 0
]
}, - "camera": {
- "set": {
- "target": [
- 0,
- 0,
- 0
], - "position": [
- 0,
- 0,
- 0
]
}
}, - "metadata": {
- "set": {
- "key1": "value1",
- "key2": "value2"
}
}
}
}
]
}{- "items": [
- {
- "id": 1000,
- "fileId": 1000,
- "published": false,
- "rotation": [
- 0,
- 0,
- 0
], - "scale": [
- 1,
- 1,
- 1
], - "translation": [
- 0,
- 0,
- 0
], - "camera": {
- "target": [
- 0,
- 0,
- 0
], - "position": [
- 0,
- 0,
- 0
]
}, - "status": "Done",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "thumbnailThreedFileId": 1000,
- "assetMappingCount": 0,
- "createdTime": 0
}
]
}Required capabilities:
threedAcl:DELETE
Empty response.
The response for a failed request.
{- "items": [
- {
- "id": 1
}
]
}{ }Required capabilities:
threedAcl:READ
A revision object
const revisions3D = await client.revisions3D.retrieve(8252999965991682, 4190022127342195)
{- "id": 1000,
- "fileId": 1000,
- "published": false,
- "rotation": [
- 0,
- 0,
- 0
], - "scale": [
- 1,
- 1,
- 1
], - "translation": [
- 0,
- 0,
- 0
], - "camera": {
- "target": [
- 0,
- 0,
- 0
], - "position": [
- 0,
- 0,
- 0
]
}, - "status": "Done",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "thumbnailThreedFileId": 1000,
- "assetMappingCount": 0,
- "createdTime": 0
}Required capabilities:
threedAcl:READ
List log entries for the revision
A list of log entries
The response for a failed request.
{- "items": [
- {
- "timestamp": 0,
- "severity": 7,
- "type": "CONVERTER/FAILED",
- "info": "string"
}
]
}Required capabilities:
threedAcl:UPDATE
The request body containing the file ID of the thumbnail image (from Files API).
Empty response.
The response for a failed request.
{- "fileId": 0
}{ }Required capabilities:
threedAcl:READ
Retrieve a list of available outputs for a processed 3D model. An output can be a format that can be consumed by a viewer (e.g. Reveal) or import in external tools. Each of the outputs will have an associated version which is used to identify the version of output format (not the revision of the processed output). Note that the structure of the outputs will vary and is not covered here.
Returns a list of outputs and available versions per output for the given revision.
{- "items": [
- {
- "format": "ept-pointcloud",
- "version": 1,
- "blobId": 1
}
]
}Required capabilities:
threedAcl:READ
Retrieves a list of nodes from the hierarchy in the 3D model. You can also request a specific subtree with the 'nodeId' query parameter and limit the depth of the resulting subtree with the 'depth' query parameter. By default, nodes are returned in order of ascending treeIndex. We suggest trying to set the query parameter sortByNodeId to true to check whether it makes your use case faster. The partition parameter can only be used if sortByNodeId is set to true. This operation supports pagination. If the model revision is still being processed, you will get a HTTP status 400 when accessing nodes too early. Wait until the retrieve revision response returns "status":"Done" before calling nodes endpoints.
A list of nodes of a revision.
The response for a failed request.
const nodes3d = await client.revisions3D.list3DNodes(8252999965991682, 4190022127342195);
{- "items": [
- {
- "id": 1000,
- "treeIndex": 3,
- "parentId": 2,
- "depth": 2,
- "name": "Node name",
- "subtreeSize": 4,
- "properties": {
- "category1": {
- "property1": "value1",
- "property2": "value2"
}, - "category2": {
- "property1": "value1",
- "property2": "value2"
}
}, - "boundingBox": {
- "max": [
- 0,
- 0,
- 0
], - "min": [
- 0,
- 0,
- 0
]
}
}
], - "nextCursor": "string"
}Required capabilities:
threedAcl:READ
List nodes in a project, filtered by node names or node property values specified by supplied filters. This operation supports pagination and partitions. If the model revision is still being processed, you will get a HTTP status 400 when accessing nodes too early. Wait until the retrieve revision response returns "status":"Done" before calling nodes endpoints.
Filter request for nodes. Filters nodes with properties matching ones in a list of alternatives.
A list of nodes satisfying the supplied node property filters.
The response for a failed request.
{- "filter": {
- "properties": {
- "PDMS": {
- "Area": [
- "AB76",
- "AB77",
- "AB78"
], - "Type": [
- "PIPE",
- "BEND",
- "PIPESUP"
]
}
}
}, - "limit": 100,
- "cursor": "4zj0Vy2fo0NtNMb229mI9r1V3YG5NBL752kQz1cKtwo",
- "partition": "1/10"
}{- "items": [
- {
- "id": 1000,
- "treeIndex": 3,
- "parentId": 2,
- "depth": 2,
- "name": "Node name",
- "subtreeSize": 4,
- "properties": {
- "category1": {
- "property1": "value1",
- "property2": "value2"
}, - "category2": {
- "property1": "value1",
- "property2": "value2"
}
}, - "boundingBox": {
- "max": [
- 0,
- 0,
- 0
], - "min": [
- 0,
- 0,
- 0
]
}
}
], - "nextCursor": "string"
}Required capabilities:
threedAcl:READ
Retrieves specific nodes given by a list of IDs.
The request body containing the IDs of the nodes to retrieve. Will return error 400 if the revision is still being processed.
required | Array of objects (Node3DId) [ 1 .. 1000 ] items |
A list of nodes.
The response for a failed request.
{- "items": [
- {
- "id": 1000
}
]
}{- "items": [
- {
- "id": 1000,
- "treeIndex": 3,
- "parentId": 2,
- "depth": 2,
- "name": "Node name",
- "subtreeSize": 4,
- "properties": {
- "category1": {
- "property1": "value1",
- "property2": "value2"
}, - "category2": {
- "property1": "value1",
- "property2": "value2"
}
}, - "boundingBox": {
- "max": [
- 0,
- 0,
- 0
], - "min": [
- 0,
- 0,
- 0
]
}
}
]
}Required capabilities:
threedAcl:READ
Retrieves a list of ancestor nodes of a given node, including itself, in the hierarchy of the 3D model. This operation supports pagination. Will return error 400 if the revision is still being processed.
A list of ancestor nodes.
The response for a failed request.
const nodes3d = await client.revisions3D.list3DNodeAncestors(8252999965991682, 4190022127342195, 572413075141081);
{- "items": [
- {
- "id": 1000,
- "treeIndex": 3,
- "parentId": 2,
- "depth": 2,
- "name": "Node name",
- "subtreeSize": 4,
- "properties": {
- "category1": {
- "property1": "value1",
- "property2": "value2"
}, - "category2": {
- "property1": "value1",
- "property2": "value2"
}
}, - "boundingBox": {
- "max": [
- 0,
- 0,
- 0
], - "min": [
- 0,
- 0,
- 0
]
}
}
], - "nextCursor": "string"
}