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
357 views
in Technique[技术] by (71.8m points)

How to get modelview metadata in Autodesk Forge SFV2 format?

I would like to get modelview metadata with the new format that SVF2 uses. I need it to get assigned dbIDs to the list of elements name that I have, to preprocess data.

I've uploaded and translated .nwd file in SVF2 format, where dbIDs are assigned in "Breadth First Search" way. However, when I get modelview metadata, it returns exactly the same modelview metadata as SVF format, where dbIDs are assigned in "Depth First Search" way.

BTW, I use https://forge.autodesk.com/en/docs/model-derivative/v2/reference/http/urn-metadata-guid-GET/ to get the metadata.

In the image below, the left side shows what I get (SVF format) from the the model translated in SVF2 format, and the right side show what I expect, which is the format that SVF2 uses.

dbIDs assignment format for SVF2, what I get vs what I expect

Please let me know, how can I get the right modelview metadata for SVF2.

question from:https://stackoverflow.com/questions/65881319/how-to-get-modelview-metadata-in-autodesk-forge-sfv2-format

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

1 Reply

0 votes
by (71.8m points)

The SVF2 format is still being rolled out (currently in public beta), and unfortunately the Model Derivative metadata endpoint currently only provides SVF1 metadata.

At the moment, the only way to get the corresponding metadata for an SVF2 model is through the Forge Viewer APIs. For example, when you load your SVF2 model into the viewer, select one of the elements, and display the Properties panel, you should see the correct metadata there.


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

...