We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(7)
我在几个项目中使用了 WoutWare 的 Cadlib,并取得了良好的效果。
Cadlib from WoutWare have I been using for a couple of projects with good results.
我花了几年时间开发自己的 java 中的 DXf-Viewer(您可以在查看器上放置您自己的 DXF 文件或 URL)用于 2D 绘图。
AutoCAD 发布的信息是一个很好的基础,但没有解释它是如何工作的。
成为开放设计的成员Alliance,将使您能够将多种 CAD 格式转换为 DXF。 如果您正在开发商业产品,这可能是个好主意。
有一本德语书(http://www.crlf.de/Verlag /DXF-intern/DXF-intern.html)关于DXF,它真正解释了这种格式。 虽然价格昂贵,但可以节省数天的搜索时间。
DXF 格式的颜色是有索引的,您必须有一个从 ACI 到 RGB 的转换器。 请注意具有特殊含义的值 0 和 1。
问候。
I have work a couple of years at developing my own DXf-Viewer in java (you could drop your own DXF file or an URL on the viewer) for 2D drawings.
The published information from AutoCAD is a good base but doesn't explain how it works.
Becoming member of the Open Design Alliance, will give you the possibility to convert several CAD formats to DXF. It may be a good idea if you are developing a commercial product.
There is a german book (http://www.crlf.de/Verlag/DXF-intern/DXF-intern.html) about DXF which really explain this format. It's expensive, but could save days of search.
The colors in the DXF Format are indexed, you must have a converter from ACI to RGB. Be careful with values 0 and 1 which having a special meaning.
Regards.
更新以防有人仍在寻找...
这是同一个库,只是包含两个链接。
https://github.com/haplokuon/netDxf
https://www.nuget.org/packages/netDXF/
Update in case someone is still looking...
It's the same library, just including both links.
https://github.com/haplokuon/netDxf
https://www.nuget.org/packages/netDXF/
幸运的是,AutoCAD 在此处发布了 DXF 格式信息: DXF 格式
Fortunately AutoCAD publish the DXF format information here: DXF Formats
您可能想尝试开放设计联盟。 我已经有一段时间没有亲自查看它了,但他们有大量用于处理各种 AutoCAD 文件的 C 库。
You may want to try the Open Design Alliance. It's a while since I looked at it myself, but they had a load of C libraries for dealing with various AutoCAD files.
这里是 CodeProject dxf 阅读器的链接; 不过,它似乎非常有限(而且做得不是特别好)。
Here is a link to a CodeProject dxf reader; it seems very limited (and not particularly well done) though.
这里是另一个开源 dxf 阅读器,采用 Java 语言。 然而越野车!
Here is another open source dxf reader, in Java. Buggy however!