如何在C#和AutoCAD之间建立联系? [英] How to link between C# and AutoCAD?

查看:141
本文介绍了如何在C#和AutoCAD之间建立联系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要的是让框架显示AutoCAD文件,以便在ac#应用程序中链接此文件并从中获取信息以存储在SQL Server DB中。



例如:AutoCAD文件显示区域的设计,该区域被分成块,这些块也分成小部分,在AutoCAD文件中具有指定的宽度和高度。请求是在C#应用程序中包含此文件,因此我可以通过在应用程序中输入其编号来搜索指定的块,因此块应该在AutoCAD框架中放大并以红色边框为边界。



区域附加信息将提供给每个块和应用程序的一部分,并将存储在DB中以便以后搜索和显示。



我希望我的想法很清楚,有没有简单的插件?

解决方案

检查以下链接:



http://social.msdn.microsoft.com/Forums/vstudio/en-US/66e1e969-bb6a-4892-982c-b8c5260349b1/loading-or-importing-dxfdwf -file-in-wpf-application?forum = wpf [^]



http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/ [^]

< a href =http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=19118898[^]> http://usa.autodesk.com/adsk/servlet/index?siteID= 123112和ID = 19118898 [^]

What I need is to have something like a frame displays AutoCAD file, for the purpose of linking this file within a c# application and getting information from it to be stored in SQL Server DB.

For example: AutoCAD file displays a design for an area which is divided into blocks, which also divided into small parts, with specified width and height in the AutoCAD file. The request is to include this file within C# application, so I can search for a specified block by entering its number in the application, so the block should be zoomed in the AutoCAD frame and bordered with a red border.

There area additional information will be supplied to each block and part from the application and will be stored in DB to searched and displayed later.

I hope my idea is clear, Is there any easy plugin?

解决方案

Check the following links:

http://social.msdn.microsoft.com/Forums/vstudio/en-US/66e1e969-bb6a-4892-982c-b8c5260349b1/loading-or-importing-dxfdwf-file-in-wpf-application?forum=wpf[^]

http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/[^]
http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=19118898[^]


这篇关于如何在C#和AutoCAD之间建立联系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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