Alireza Rasti
Alireza Rasti

Reputation: 9

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.

Upvotes: 0

Views: 485

Answers (1)

Petr Broz
Petr Broz

Reputation: 9934

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.

Upvotes: 1

Related Questions