用于从 AutoCAD 绘图中提取块属性的 .net 库
我正在寻找一个 .net 库,它使我能够从 autocad 文件中提取块属性。我不介意支付开发人员许可证的费用,但我应该能够自由地重新分发库本身,而无需额外费用。 有适合我需要的库吗?
问候,
科恩
I'm looking for a .net library that will enable me to extract block attributes out of a autocad file. I don't mind paying for a developers licence but I should be able to freely redistribute the library itself without additional costs.
Is there a lib that suits my needs?
greetings,
Coen
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请查看 ADN(Autodesk 开发人员网络),www.autodesk.com/adn。我已经成为会员几年了,价格从 400 美元到几千美元不等,具体取决于您的级别和开发人员数量。当我专门为工程社区开发时,我发现它很有价值。
如果您的客户拥有 AutoCAD,则无需从 Autodesk 获得任何内容的分发许可。但是,您需要获得开发和测试工作的许可证。 ADN 许可证允许这种使用,但 ADN 是经常性的年费。您需要仔细计算,看看购买现成的商业许可证或采用 ADN 路线是否更好。
AutoCAD 具有 .NET API,可以访问大量内容,包括块。还有旧的 COM api。
您没有提到 AutoCAD 的版本。最近的几个版本在改进和扩展 .NET API 方面取得了重大进展。
另一种选择是使用 RealDWG。如果您的客户没有 AutoCAD,但他们有必须通过您的应用访问的 AutoCAD 文件,您将需要一个库来读取/写入 dwg 文件。 RealDWG 第一年为 5000 美元,之后每年为 2500 美元。发行权的有效期为一年,因此如果您想继续发行,则必须继续缴纳年费。
RealDWG 有其他替代方案。我对开放文件格式组织提供的一个这样的库有点熟悉,但是,在我看来,这提出了一些关于对文件格式进行逆向工程的问题。 Autodesk 往往非常喜欢诉讼,因此我更愿意尽可能远离法庭。
祝你好运,
Look at the ADN (Autodesk Developer Network), www.autodesk.com/adn. I was a member for a few years and the price ranges from $400 - a few thousand depending on your level and number of developers. I found it to be valuable when I was developing exclusively for the engineering community.
If your customers have AutoCAD, there is no need to license anything from Autodesk for distribution. You would, however, need a license for the development and testing work. The ADN license would permit this usage but ADN is a recurring, annual fee. You'l need to crunch the numbers to see if you're better off purchasing an off-the-shelf commercial license or going the ADN route.
AutoCAD has .NET apis that give access to a bunch of stuff, including blocks. There is also the old COM apis.
You didn't mention which version of AutoCAD. The last several releases have made significant strides to improve and expand the .NET apis.
The other option is to use RealDWG. If your customers will not have AutoCAD but they have AutoCAD files they must access via your app, you will need a library to read/write the dwg file. RealDWG is $5000 the first year, $2500 each year after. Distribution rights are one year so you must keep paying the annual fees if you want to keep distributing.
There are alternatives to RealDWG. I am vaguely familair with one such library offered by an open file format organization but, IMO, that raises some questions about reverse engineering the file format. Autodesk tends to be very litiguous and I prefer to stay out of court when possible.
Good luck,
尝试开放设计联盟或浏览AutoCAD 论坛。 此博客也是一个很好的参考。您可以尝试使用 AutoDesk Developer Network,但您需要出售肾脏。
Try the Open Design Alliance or trawl through the AutoCAD forums. This Blog is also a good reference. You could try the AutoDesk Developer Network but you will need to sell a kidney.