用于 Node.js 或 Javascript 库的 DWG 转换器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18237122/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
DWG converter for Node.js or Javascript library
提问by tdhulster
I want to show AutoCAD-files (.DWG) in my AngularJS application and I'm using a Node.js backend for my application.
我想在我的 AngularJS 应用程序中显示 AutoCAD 文件 (.DWG),并且我正在为我的应用程序使用 Node.js 后端。
Are there any DWG libraries in Javascript? Are there any DWG Node libraries to convert DWG files to a SVG / PDF / ...
Javascript 中是否有任何 DWG 库?是否有任何 DWG 节点库可以将 DWG 文件转换为 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
我唯一能找到的是: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.
这是一个 linux 命令行实用程序,但我无法使用它,因为我想在 Heroku 平台上托管我的应用程序。
采纳答案by Trae Moore
Check out the autocad the 2014 JavaScript API http://adndevblog.typepad.com/autocad/2013/04/getting-started-with-javascript-api-on-autocad-2014.html
查看 autocad 2014 JavaScript API http://adndevblog.typepad.com/autocad/2013/04/getting-started-with-javascript-api-on-autocad-2014.html
Here is a YouTube video
这是一个 YouTube 视频
http://m.youtube.com/watch?v=PZKKJwcke2k&desktop_uri=%2Fwatch%3Fv%3DPZKKJwcke2k
http://m.youtube.com/watch?v=PZKKJwcke2k&desktop_uri=%2Fwatch%3Fv%3DPZKKJwcke2k