Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
275 views
in Technique[技术] by (71.8m points)

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.

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...