Unable to get revit filemeta data or see revit model in 3d viewer for forge modelderivative API

你离开我真会死。 提交于 2019-12-11 14:49:51

问题


We have been using the model derivative api endpoints to extact data from forge but are currently having issues extracting meta data when uploading specifically Revit files.

Our process goes:

  1. Auth

  2. Upload a model in chunks https://developer.api.autodesk.com/oss/v2/buckets/{bucketKey}/objects/{objectName}/resumable

  3. Create upload job https://developer.api.autodesk.com/modelderivative/v2/designdata/job

  4. Get translation the process https://developer.api.autodesk.com/modelderivative/v2/designdata/{encodedUrn}/manifest

  5. Get the object from the forge https://developer.api.autodesk.com/modelderivative/v2/designdata/{encodedUrn}/metadata

Current we are we receive a 200 response from step 5 with and empty meta information so we cannot extract anything.

When we load the 3D viewer (versions 6.0 and 4.0) the viewer calls the https://developer.api.autodesk.com/derivativeservice/v2/manifest/

When

"messages": [
            {
                "type": "error",
                "code": "Revit-UnsupportedFileType",
                "message": "<message>The file is not a Revit file or is not a supported version.</message>"
            },
            {
                "type": "error",
                "message": "Possibly recoverable warning exit code from extractor: -536870935",
                "code": "TranslationWorker-RecoverableInternalFailure"
            }
        ],

It was converted from an ifc format if that helps in any way. We have tried this file in 360 and in forge with both revit and ifc before and translation has worked. I can provide a urn also.


回答1:


As reported by @Glenit, it was missing some pieces on the resumable upload. For reference, this answer points out some samples on it.



来源:https://stackoverflow.com/questions/51770589/unable-to-get-revit-filemeta-data-or-see-revit-model-in-3d-viewer-for-forge-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!