I want to render 3D graphics files of autodesk (.dwg and .dwf) using three.js but three.js requires 3D data to be in json format. So, I need to convert these files to three.js readable json format. I tried searching on the internet but couldn't find any solution. Can anyone tell me a good converter for these files?
Thanks in advance.
If you are looking for a way to convert a DWF or DWFx file to an AutoCAD DWG model, look at the suggestions of the online tool for CAD format conversions. For the conversion DWF --> DWG , this tool offers a combination of DWF import to Autodesk Navisworks, and using the FBX format to transfer the 3D data from Navisworks to AutoCAD.
There is a server side REST API that allow you to upload a CAD file and convert to a JSON stream. You can hook to it and get the output. Or, even easier, just use the JavaScript client side API to embed the viewer on your website/app
DWF/DWFx files are a "digital plot" file containing only low-intelligence entities. It is not intended for use as a drawing file exchange format and cannot be fully recovered or changed back to a standard drawing file. Create a new drawing in AutoCAD. Use the DWFATTACH command and attach the DWF/DWFx file.
For the conversion DWF --> DWG , this tool offers a combination of DWF import to Autodesk Navisworks, and using the FBX format to transfer the 3D data from Navisworks to AutoCAD. You can use a similar way to take the CAD model also to other CAD software.
In fact Autodesk already have a converter & wegbl viewer. Go to http://developer.autodesk.com and get a key for View & Data API. There is a server side REST API that allow you to upload a CAD file and convert to a JSON stream. You can hook to it and get the output. Or, even easier, just use the JavaScript client side API to embed the viewer on your website/app
Update
The API was renamed to Model Derivative + Viewer, the first translates the source file (e.g. DWG
, RVT
and many others) to a web-friendly format that can be viewed on the second, which is based on Three.js (and can be customized).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With