ARTICLE DETAIL

建站实战干货

来自一线的建站与推广经验沉淀,每一条都经过真实交付验证。

CAD二次开发--helloworld

2026/8/4 5:37:26 拓冰建站 浏览量
CAD二次开发--helloworld

CAD二次开发--helloworld

using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.Runtime;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Shapes;namespace CADDEvHelloworld
{public class Class1 : IExtensionApplication{void IExtensionApplication.Initialize(){return;}void IExtensionApplication.Terminate(){return;}[CommandMethod("HelloWorld")]public void HelloWorld(){MessageBox.Show("Hello,World!");}}
}