wpf 面板CAD07下线程错误
本人打算采用WPF制作版面,同样的程序,CAD2010环境下加载没问题,但在CAD07下,出现线程错误的问题,恳请老大们指点.......http://bbs.mjtd.com/forum.php?mod=image&aid=84823&size=300x300&key=30fc56ae0d479078&nocache=yes&type=fixnone
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;
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;
}
}
}
低版本的.net好像不支持wpf。 cad08同类问题,不清楚是否作用于07一致
https://www.cnblogs.com/JJBox/p/14125493.html
页:
[1]