Trying to display .rvt models online by using three.js or babylon.js, is it possible?

Trying to display .rvt models online by using three.js or babylon.js, is it possible?

qidoctor
Observer Observer
4,724 Views
9 Replies
Message 1 of 10

Trying to display .rvt models online by using three.js or babylon.js, is it possible?

qidoctor
Observer
Observer

I'm building a website to show gltf models, base on babylon.js. Now I'm trying to support rvt format. Is there a best practice that I can follow? Or is it possible that I can convert .rvt format to gltf?

0 Likes
4,725 Views
9 Replies
Replies (9)
Message 2 of 10

Omar_Amen
Advocate
Advocate

Hi @qidoctor ,
Sure it's possible, but with some extra middlewares!
Autodesk forge viewer is based on three.js lib and it can display rvt files, but under the hood it uses APIs to convert the rvt file to whatever file type that three.js support (e.g. gltf),

but the rvt file is well encrypted and owned by Autodesk and you can only open it via Revit, so how can you convert it?..
well you can pick one of the following ways:

-build a desktop Revit add-in that can convert/export the model data to gltf.[free but required a Revit installed on the user device]
-build an online Revit add-in that can convert/export the model data to gltf through Autodesk Forge design automation API.[with running cost]
-use Autodesk Forge Model Derivative API to convert your file. [with extra running cost]

good luck ^^
Regards,

Message 3 of 10

jeremy_tammik
Alumni
Alumni

It is definitely doable, as we proved here in a real-life scenario that was indeed used quite widely before the advent of Autodesk Forge:

  

https://github.com/va3c/RvtVa3c

  

However, it is challenging to implement something professional yourself.

 

Autodesk has invested a huge amount of work in the Forge viewer, and many other viewers also exist.

 

It is probably not worth while trying to start from scratch implementing your own, unless you are exceptionally motivated and talented.

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 4 of 10

qidoctor
Observer
Observer

Ultimately, my web app should be able to accept uploaded .rvt file and display it, without opening Revit. Or convert .rvt to gltf then display it.

I am wondering if AutoDesk supplied SDK or API to do this kind of stuff.

0 Likes
Message 5 of 10

qidoctor
Observer
Observer
Thand you , very good answer.
0 Likes
Message 6 of 10

giovannibrogiolo6744
Contributor
Contributor

Hi,

Have you considered Speckle?

https://speckle.systems/tag/revit/

 

Cheers

0 Likes
Message 7 of 10

mayurgohilk
Observer
Observer
Do you found any solution?
(Load rvt file using threeJs/BabylonJs)
Message 8 of 10

mayurgohilk
Observer
Observer
Do you think is it the feasible option?
Message 9 of 10

jeremy_tammik
Alumni
Alumni

Yes, sure. Read the various suggestions above!

 

It is definitely doable, as we proved in a real-life scenario that was used before the advent of Autodesk Forge and APS:

 

I implemented RvtVa3c myself:

 

https://github.com/va3c/RvtVa3c

 

However, it is challenging to implement something professional yourself.

 

Autodesk has invested a huge amount of work in the APS (formerly Forge) viewer, and many other viewers also exist.

 

It is probably not worth while trying to start from scratch implementing your own, unless you are exceptionally motivated and talented.

 

Speckle is open source and supports Revit:

 

https://speckle.systems/tag/revit/

 

For full-fledged official commercial support, look into APS:

 

https://aps.autodesk.com/

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 10 of 10

kirylXDQF6
Contributor
Contributor

You can also use this glTF Exporter API to create your own plugin or DA workflow to get Revit models in glTF format: glTF Exporter + API | Revit | Autodesk App Store

0 Likes