I want to show AutoCAD-files (.DWG) in my AngularJS application and I'm using a Node.js backend for my application.
Are there any DWG libraries in Javascript? Are there any DWG Node libraries to convert DWG files to a SVG / PDF / ...
I don't want to edit them; just show them online in my application.
The only that i could find was this :
It's a linux mand-line utility but I cannot use it since I want to host my application on the Heroku platform.
I want to show AutoCAD-files (.DWG) in my AngularJS application and I'm using a Node.js backend for my application.
Are there any DWG libraries in Javascript? Are there any DWG Node libraries to convert DWG files to a SVG / PDF / ...
I don't want to edit them; just show them online in my application.
The only that i could find was this : http://etc.nkadesign./Download/Cad2svg
It's a linux mand-line utility but I cannot use it since I want to host my application on the Heroku platform.
Share Improve this question asked Aug 14, 2013 at 16:22 tdhulstertdhulster 1,6213 gold badges20 silver badges35 bronze badges 1- @tdhulser, don't forget to accept the answer if it help you in the pursuit of the question. :) – Trae Moore Commented Nov 15, 2013 at 21:56
3 Answers
Reset to default 3Check out the autocad the 2014 JavaScript API http://adndevblog.typepad./autocad/2013/04/getting-started-with-javascript-api-on-autocad-2014.html
Here is a YouTube video
http://m.youtube./watch?v=PZKKJwcke2k&desktop_uri=%2Fwatch%3Fv%3DPZKKJwcke2k
There is a tiegha file converter made by the Open Design Alliance. It is a CLI exe that can convert dwg to dxf. opendesign./guestfiles/teigha_file_converter .Then there are lots of dxf parsers. I like this one github./gdsestimating/dxf-parser
There is a NodeJS wrapper library for the Vector Express conversion API you may be able to use: https://github./smidyo/vectorexpress-nodejs