using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.EditorInput;
using System.Windows.Forms;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.ApplicationServices;
namespace ClassLibrary4
{
public class Class1
{
public static Autodesk.AutoCAD.Windows.PaletteSet ps;
[CommandMethod("FF")]
public void Initialize()
{
ps = new Autodesk.AutoCAD.Windows.PaletteSet("面板");
System.Windows.Forms.UserControl myCtrl = new UserControl1();
ps.Add("面板", myCtrl);
ps.Visible = true;
ps.Size = new System.Drawing.Size(100, 2000);
ps.Dock = Autodesk.AutoCAD.Windows.DockSides.Left;
}