directly get svf from BIM360 hub/project/model

instead of using Model Derivative, is it possible to get file in SVF format directly from BIM360 model which has already been converted to SVF or SVF2 format? I mean not using MD service at all, thanks.


Solution 1:

To download SVF dataset (no matter from your own bucket, or from BIM360), you need to use Forge Derivative API to get manifest (GET:manifest) info and metadata (GET:Metadata) info. The info will tell the relative cloud path of the *.svf, while *.svf stores the index of the dataset. Then download them one by one.

We have a few code that demo how to download SVF data to local. The most updated one I would recommend is my colleague Petr composed: https://github.com/petrbroz/forge-convert-utils It targets to convert SVF to glTF, but it has quite a few granule modules, one of which can download SVF data.

you could perform a simple test:

  1. download the source code of the tool
  2. run npm install
  3. run npm run-script build
  4. export your Forge client id and secret to env
  5. run node samples/download-svf.js <your model urn of BIM360> <local path>

It will start the process to get manifest and download the SVF data one by one to local. This is a screenshot with my test. If you work with js, typescript, you could merge the module to your workflow.

enter image description here

Solution 2:

In the context of BIM360, the uploaded models will be translated to SVF(s) automatically. So you can get the metadata, properties or load in Forge Viewer directly. This is a tutorial on how to work with BIM360 hub/project/folders/item/versions, in which no specific step to translate models. https://learnforge.autodesk.io/#/tutorials/viewhubmodels

Pease note: this encourages the programmers, solution builders to provide extensible abilities for the end users of BIM360, adding more values for them. It does not mean to be an alterative to bypass model derivative when the solution is not for BIM360 users.