- URL:https://<featurelayer-url>/convert3D
- Version Introduced:11.1
Description
The convert3D operation is used to convert small assets from one format to another. Similar to the queryAssets operation, converted assets can be retrieved from either the response (esriTransportTypeEmbedded) or as an asset reference (esriTransportTypeEmbedded). Before performing the convert3D operation, assets must be uploaded using the uploadAssets operation.
Request parameters
Parameter | Details |
---|---|
transportType | Specifies how the assets will be retrieved. The default value is esriTransportTypeUrl Values: esriTransportTypeUrl | esriTransportTypeEmbedded |
targetFormat | The format in which the converted assets will be returned in the response. Potential values: 3D_dae | 3D_dwg | 3D_fbx | 3D_glb | 3D_gltf | 3D_ifc | 3D_obj | 3D_shapebuffer | 3D_shapebufferg | 3D_usdc | 3D_usdz |
assets | An array of assets describing the 3D object that the client wants to convert to the specified targetFormat value. Syntax
|
f | The response format. The default response format is html. Values: html | json | pjson |
Example usage
The following is a sample request URL for the convert3D operation:
https://machine.domain.com/webadaptor/rest/services/City_Park_Assets/FeatureServer/0/convert3D
JSON Response syntax
{
"assets": [<asset1>,<asset2>]
}
JSON Response example
{
assets: [
{
"assetHash": "045ef29d382f1c8227bde3a25d37f7a62fe0d2259a3a14dd6486ee53c8faba18",
"contentType": "model/gltf-binary",
"assetName": "model.glb",
"assetURL": "https://machine.domain.com/webadapter/rest/services/ESRI3DO/FeatureServer/0/assets/045ef29d382f1c8227bde3a25d37f7a62fe0d2259a3a14dd6486ee53c8faba18"
}
]
}