Reputation: 1621
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.com/Download/Cad2svg
It's a linux command-line utility but I cannot use it since I want to host my application on the Heroku platform.
Upvotes: 13
Views: 25578
Reputation: 167
There is a NodeJS wrapper library for the Vector Express conversion API you may be able to use: https://github.com/smidyo/vectorexpress-nodejs
Upvotes: 1
Reputation: 217
There is a tiegha file converter made by the Open Design Alliance. It is a CLI exe that can convert dwg to dxf. opendesign.com/guestfiles/teigha_file_converter .Then there are lots of dxf parsers. I like this one github.com/gdsestimating/dxf-parser
Upvotes: 2
Reputation: 1787
Check out the autocad the 2014 JavaScript API http://adndevblog.typepad.com/autocad/2013/04/getting-started-with-javascript-api-on-autocad-2014.html
Here is a YouTube video
http://m.youtube.com/watch?v=PZKKJwcke2k&desktop_uri=%2Fwatch%3Fv%3DPZKKJwcke2k
Upvotes: 3