Dominik
Dominik

Reputation: 281

ModelDeriviate's manifest is missing URN for SVF2

I know that it is possible to download the derivatives via their respective urns. However, the SVF2 object in the manifest doesn't contain its urn. Therefore, I cannot download the derivative as explained here or here. Is this not supported yet? And can I compute the urn from the data returned in the manifest?

Extract of an manifest example:

{
    "urn": "SOME_URN",
    "derivatives": [
        {
            "hasThumbnail": "true",
            "children": [
                {
                    "useAsDefault": true,
                    "role": "3d",
                    "hasThumbnail": "true",
                    "children": [
                        {
                           ...
                        },
                        {
                           ...
                        },
                        {
                            "role": "graphics",
                            "mime": "application/autodesk-svf2",
                            "guid": "SOME_GUID",
                            "type": "resource"
                        }
                    ],

Upvotes: 0

Views: 402

Answers (2)

cyrille
cyrille

Reputation: 2659

I'd like to make clear that it is possible to download the SVF2 'files' since your WEB browser can do it; therefore, you can access the data as well. The files are actually cached in your Browser, see below.

SVF2 data cached

The Viewer downloads an extra manifest files (otg_model.json) which contains additional information. But downloading the 'files' on your local machine will not help since it requires a lot of setup to get the Viewer work properly with a local SVF2 storage. And with the current state of the technology, it is highly recommended you do not try to do this in production. When it comes to development, and debugging, I go a sample posted here which can help. But please be careful with the Autodesk EULA on doing offline workflows. This sample is a replacement of the old extract.autodesk.io sample as people were abusing of this website, and can work with both SVF and SVF2.

To answer the question in the comment section. SVF2 is still in beta, and access to the underlying data/files will probably be only available at the end on the beta. The main reason is that SVF2 and the Viewer code evolves too rapidly today to make a general availability to everything. So unless you keep updating them on your local machine, things may break, and therefore Autodesk is limiting the access.

Upvotes: 1

Eason Kang
Eason Kang

Reputation: 7070

Sorry for disappointing you, but ...

Unfortunately, it's expected behavior. SVF2 doesn't have a concept of URN, and you cannot download SVF2 for offline viewing at this moment since it's unsupported.

Upvotes: 0

Related Questions