AutoCAD中Form的引导程序

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.ApplicationServices;
using System.Windows.Forms;

namespace Cylinder
{
    public class Shell
    {
        Cylinder SS = new Cylinder();
        [CommandMethod("Shell")]
        public void LoadShell()
        {
            Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(SS);
        }
    }
}

原文地址:https://www.cnblogs.com/swtool/p/3832417.html