是否有用于解析AutoCAD文件的库? [英] Are there any libraries for parsing AutoCAD files?

查看:177
本文介绍了是否有用于解析AutoCAD文件的库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有用于解析AutoCAD文件(DWG或DXF)的库(最好是开源的)?

Are there any libraries (preferably open-source) for parsing AutoCAD files (DWG or DXF)?

推荐答案

.net CAD组件,可以读取/写入dxf/dwg文件

没有任何我可以认为可靠的免费解析DWG的工具.开放设计联盟往往更便宜在AutoDesk的RealDWG产品上运行的操作系统更多.对于尚未发布代码的初创公司,ODA具有价格层级-RealDWG则没有. ODA和AutoDesk都在论坛中提供支持-您必须是ODA的成员,但是AutoDesk的论坛位于 http ://discussion.autodesk.com/forums/,在这里您可以免费加入.

There isn't anything available for parsing DWG for free that I would regard as reliable. The Open Design Alliance tends to be cheaper & runs on more OS's than AutoDesk's RealDWG offering. The ODA has a price-tier for startups who aren't yet shipping code - RealDWG doesn't. Both the ODA and AutoDesk offer support in forums - you have to be a member of the ODA but AutoDesk's forums are at http://discussion.autodesk.com/forums/ where you can join for free.

DXF是一种文本文件格式(类似于XML),您可以根据自己的喜好来解析-如果您知道要查找的内容.您可能会为此找到一个库而感到更幸运(我没有研究过),但这可能涉及从DWG格式进行转换.请注意,有各种版本的DXF格式

DXF is a text-file format (similar to XML) which you can parse with anything you like - if you know what you're looking for. You may have more luck with finding a library for that (I haven't looked into it) but that would involve conversion from DWG format. Note that there are various releases of the DXF format

您可以尝试使用Autodesk的DWG Trueview(免费),但它是最终用户查看器-它没有正式提供API.过去,有些人在自动化方面取得了不同程度的成功.我还没有尝试过&我强烈怀疑最新版本已针对此问题进行了强化.

You can try Autodesk's DWG Trueview (free) but it is an end-user viewer - it doesn't officially offer an API. Some people have had varying degree of success in the past automating it. I haven't tried myself & I strongly suspect the latest versions have been hardened against that.

最终,如果您正在为可能会坚持或至少对缺乏官方" AutoCAD库和随附的受信任DWG" BS的不愿接受的高端客户工作,那么您可能需要投资成为Autodesk开发人员网络的成员.

Ultimately, if you are working for high-profile clients who are likely to insist on, or at least balk at the absence of 'official' AutoCAD libraries and the "Trusted DWG" BS that goes with it then you may need to invest in a membership of the Autodesk Developer Network.

作为一个长期的最终用户,我可以告诉您,与AutoCAD相比,ODA的开发人员对错误报告的响应更高.

As a long-time end user I can tell you the devs at the ODA are more responsive to bug reports than AutoCAD.

这篇关于是否有用于解析AutoCAD文件的库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆