本文介绍了可以读取净CAD组件/写DXF / DWG文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找一个可以读/写DXF / DWG文件.NET CAD组件。除了矢量绘制,还有没有其他这样的组件?

I am looking for .net CAD component that can read/write dxf/dwg files. Besides vector draw, is there any other such components?

推荐答案

我回答过类似的问题here.

DXF和放大器; DWG 2种不同的动物。该DXF格式并不像COM prehensive为DWG但它是一个更容易获得的 - 它基本上是用虚线列表XML格式(也使用LISP)的变化来记录对象的属性。 DWG文件是COM pressed和加密和格式变化每3年。

DXF & DWG are 2 different animals. The DXF format is not as comprehensive as DWG but it is a lot easier to get at - it is basically a variation on an XML format using dotted lists (also used in LISP) to document object properties. DWG files are compressed and encrypted and the format changes every 3 years.

基本上有3种方式(即我所知道的),你可以读/写编程AutoCAD的DWG图纸。

There are basically 3 ways (that I know of) that you can read/write AutoCAD DWG drawings programmatically.

  1. 购买AutoCAD的(完整,不LT)的IntelliCAD等,并自动通过其COM接口。不要指望要快或分发。 AutoCAD的奔跑.NET插件作为一个DLL,由AutoCAD应用程序托管。

  1. Buy AutoCAD (full, not LT), IntelliCAD etc and automatic through its COM interface. Don't expect that to be fast or distributable. AutoCAD runs .NET add-ins as a dll, hosted by the AutoCAD application.

使用AutoDesk的 RealDWG 接口。它有一个COM,.NET和C ++,但只能运行在Windows 32和放大器接口; 64.不要期望这是负担得起的。他们的许可是每个应用程序可能吸。这是最平易近人的。NET,但血腥的昂贵。此外,处理与Autodesk可以'有意思'(阅读:无聊)。

Use AutoDesk's RealDWG interface. It has interfaces for COM, .NET and C++ but only runs in Windows 32 & 64. Don't expect that to be affordable. Their licensing is per-application which could suck. It is the most approachable for .NET but bloody expensive. Also, dealing with AutoDesk can be 'interesting' (read:boring).

使用开放式设计联盟的(ODA)的库。很多比 RealDWG 便宜,但不是免费的 - 他们的授权是由销售单位。他们的.NET库仍然是一个工作正在进行(还没有发布),但他们有成熟的C ++和ActiveX(COM)库。他们的图书馆还运行在Linux,Mac电脑,SGI,基于Win CE等,他们都积极支持论坛,并已起诉由Autodesk相当一段时间现在运行。

Use the Open Design Alliance's (ODA) libraries. A lot cheaper than RealDWG but not free - their licensing is by units sold. Their .NET library is still a work-in-progress (not released yet) but they have mature C++ and ActiveX (COM) libraries. Their libraries also run on Linux, Macs, SGI, Win CE etc. They have active support forums and have been sued by AutoDesk for quite some time now.

我听说有人管理实现自动化 AutoCAD的观众案件免费。我还没有尝试过,我不想像它会很容易或法律,它可能不会写的DWG无论是。

I have heard cases of people managing to automate the AutoCAD viewer which is free. I haven't tried and I don't imagine it would be easy or legal and it probably wouldn't write to DWGs either.

您的做法也将取决于您是否要显示图纸或没有。这是特里克和RealDWG图书馆通常会执行这个更好。 Autodesk将不许可RealDWG为任何可能与他们竞争。该 ODA 鼓励那种行为,是基础的IntelliCAD和其他类似程序。

Your approach will also depend on whether you want to display drawings or not. This is tricker and the RealDWG library will generally perform better at this. AutoDesk will not license RealDWG for anything that would compete with them. The ODA encourages that sort of behaviour and is the basis for IntelliCAD and other similar programs.

有大量的有关程序可以使从DWG PDF文件,如果这就是你想要做的。

There are plenty of programs about that can render a PDF from a DWG if that's all you want to do.

那么,你想怎么办?

这篇关于可以读取净CAD组件/写DXF / DWG文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 16:25