简体   繁体   English

无法获取Revit Filemeta数据或在3D查看器中查看Forvit模型衍生API的Revit模型

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

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. 我们一直在使用模型派生api端点来提取来自伪造的数据,但当前在上载特定Revit文件时提取元数据时遇到问题。

Our process goes: 我们的流程如下:

  1. Auth 验证

  2. Upload a model in chunks https://developer.api.autodesk.com/oss/v2/buckets/ {bucketKey}/objects/{objectName}/resumable 批量上传模型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 创建上传作业https://developer.api.autodesk.com/modelderivative/v2/designdata/job

  4. Get translation the process https://developer.api.autodesk.com/modelderivative/v2/designdata/ {encodedUrn}/manifest 获取翻译过程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 从伪造中获取对象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. 当前,我们从第5步收到200响应,其中包含和且元信息为空,因此我们无法提取任何内容。

When we load the 3D viewer (versions 6.0 and 4.0) the viewer calls the https://developer.api.autodesk.com/derivativeservice/v2/manifest/ 当我们加载3D查看器(版本6.0和4.0)时,查看器会调用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. 如果有任何帮助,它是从ifc格式转换而来的。 We have tried this file in 360 and in forge with both revit and ifc before and translation has worked. 我们已经在360上尝试过使用该文件,并且在revit和ifc都可以使用伪造的revit和ifc之前进行了伪造。 I can provide a urn also. 我也可以提供a。

As reported by @Glenit, it was missing some pieces on the resumable upload. 正如@Glenit所报告的那样,可恢复上传中缺少一些片段。 For reference, this answer points out some samples on it. 作为参考, 该答案指出了一些示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM