CAD插件开发

上传者: hanhong0414 | 上传时间: 2021-04-06 10:00:05 | 文件大小: 1.21MB | 文件类型: RAR
0, 项目效果查看: a:在CAD2006的命令行输入netload,加载Test.dll b1:在命令行输入helloworld可以看到命令功能 b2:右键可以看到右键菜单,画一个红色的圆 b3:左边工具面板多了一个工具条,有个界面可以输入各种参数来画一个组合图形 1,建一个xindows窗体程序项目,设置输出为类库 2,引用acdbmgd.dll和acmgd.dll 3,引用如下命名空间 using Autodesk.AutoCAD.EditorInput; using Autodesk.AutoCAD.ApplicationServices; using Autodesk.AutoCAD.Runtime; using Autodesk.AutoCAD.DatabaseServices; using Autodesk.AutoCAD.Geometry; using Autodesk.AutoCAD.Windows.ToolPalette; using Autodesk.AutoCAD.Windows; 4,在Form1上规划界面和后台代码。重点看代码如何实现 5,计划是CAD上增加一个面板按钮,点击按钮就打开Form1来自动画图。 这里我们加一个用户控件,拖一个按钮,按钮方法写: Form1 modalForm = new Form1(); Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(modalForm); 注意这里仅仅是打开的窗体的方式选择了AutoCAD的方式。 想建立一整套工具栏,就多拉几个按钮。按4的方法写好每个按钮执行的代码(可以要个Form1这样的界面,也可以不要,自由选择) 6,把这个项目导出还需要一个类来辅助 先看初始化Initialize()和Terminate()方法。这里给CAD加了一个面板工具栏和右键菜单,以及一些命令行

文件下载

资源详情

[{"title":"( 34 个子文件 1.21MB ) CAD插件开发","children":[{"title":"CAD插件开发——以CAD2006为例","children":[{"title":"Test","children":[{"title":"bin","children":[{"title":"Debug","children":[{"title":"Test.pdb <span style='color:#111;'> 29.50KB </span>","children":null,"spread":false},{"title":"acdbmgd.dll <span style='color:#111;'> 1.88MB </span>","children":null,"spread":false},{"title":"acmgd.dll <span style='color:#111;'> 1.02MB </span>","children":null,"spread":false},{"title":"Test.dll <span style='color:#111;'> 13.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Test.csproj.user <span style='color:#111;'> 280B </span>","children":null,"spread":false},{"title":"Test.suo <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"Form1.Designer.cs <span style='color:#111;'> 3.89KB </span>","children":null,"spread":false},{"title":"ModelessForm.Designer.cs <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 485B </span>","children":null,"spread":false},{"title":"ModelessForm.cs <span style='color:#111;'> 597B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"x86","children":[{"title":"Debug","children":[{"title":"Test.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Test.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"GenerateResource-ResGen.write.1.tlog <span style='color:#111;'> 700B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.12KB </span>","children":null,"spread":false},{"title":"Test.pdb <span style='color:#111;'> 29.50KB </span>","children":null,"spread":false},{"title":"ResolveAssemblyReference.cache <span style='color:#111;'> 9.79KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"GenerateResource-ResGen.read.1.tlog <span style='color:#111;'> 444B </span>","children":null,"spread":false},{"title":"Test.ModelessForm.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Test.csproj.FileListAbsolute.txt <span style='color:#111;'> 927B </span>","children":null,"spread":false},{"title":"Test.dll <span style='color:#111;'> 13.00KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"Class1.cs <span style='color:#111;'> 5.02KB </span>","children":null,"spread":false},{"title":"Form1.cs <span style='color:#111;'> 3.26KB </span>","children":null,"spread":false},{"title":"Test.csproj <span style='color:#111;'> 4.20KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"ModelessForm.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"CAD插件开发.txt <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"acdbmgd.dll <span style='color:#111;'> 1.88MB </span>","children":null,"spread":false},{"title":"acmgd.dll <span style='color:#111;'> 1.02MB </span>","children":null,"spread":false},{"title":"Test.dll <span style='color:#111;'> 13.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • 雾加加 :
    错误显示。
    2021-01-02
  • kaij1220 :
    正在研究CAD插件开发
    2018-12-03
  • tndch :
    正在研究,能发个vbnet的例子就好了,这是C#的
    2018-07-01

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明