摘要: // houlinbo QQ420021327 double A = Math.PI; double dBulge = Math.Sin(A / 4) / Math.Cos(A / 4); Polyline plCir = new Polyline(); plCir.AddVertexAt(0, new Point2d(pt1.X - R / 2, pt1.Y), dBulge, R, R); p... 阅读全文
posted @ 2009-12-17 18:48 houlinbo 阅读(1046) 评论(0) 推荐(0) 编辑
摘要: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//继承EntityJig两个函数重载publicclassCADJig:EntityJig{ // houlinbo QQ420021327EntitymoveEnt;//移动的实体Point3d... 阅读全文
posted @ 2009-12-16 21:14 houlinbo 阅读(1197) 评论(0) 推荐(0) 编辑
摘要: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//添加属性 // houlinbo QQ420021327privatevoidAddAttJoinWire(Transactiontr,BlockReferencerefJoinWire,Bl... 阅读全文
posted @ 2009-12-15 19:41 houlinbo 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 既然本图中已经存在此块,可以将插入块中的重复的块改个名字 // houlinbo QQ420021327private static void ClearReBtr( Database newdb , BlockTable bt) { try { Transaction tr = newdb.TransactionManager.StartTransaction(); using (tr) { B... 阅读全文
posted @ 2009-12-15 18:05 houlinbo 阅读(6296) 评论(0) 推荐(0) 编辑
摘要: 在多线程或单线程任务中,让线程带传入参数一直是个麻烦的问题,通常有种方法就是以类,对像的变量来传参数,这种方法理解上很简单不过在某些场合使用很麻烦,这里就不介绍了,我们主要介绍一种.NET2.0中新增加的带参数运行线程的方法,示例程序如下:ParameterizedThreadStartParStart = new ParameterizedThreadStart(ThreadMethod); T... 阅读全文
posted @ 2009-12-11 16:17 houlinbo 阅读(527) 评论(0) 推荐(0) 编辑
摘要: 躺在被窝看蜗居,一连看到大结局,饿了揪把馒头,咽不下去吃点咸菜,我一边吃馒头,一边吃咸菜,一把抹鼻涕,一把抹眼泪 阅读全文
posted @ 2009-11-30 17:30 houlinbo 阅读(255) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 交互得到另一点 // houlinbo QQ420021327 /// </summary> /// <returns></returns> public static PromptPointResult SelectOtherPt(string strMsg, Point3d pt) { Document doc... 阅读全文
posted @ 2009-11-26 12:57 houlinbo 阅读(493) 评论(0) 推荐(0) 编辑
摘要: //定义事件 Editor ed = doc.Editor; ed.PointMonitor += new PointMonitorEventHandler(ed_PointMonitor); //事件执行函数 void ed_PointMonitor(object sender, PointMonitorEventArgs e) { //拾取当前实体对象提交 FullSubentityPath[... 阅读全文
posted @ 2009-11-26 12:55 houlinbo 阅读(687) 评论(0) 推荐(0) 编辑
摘要: 无法加载程序集。错误详细信息: Autodesk.AutoCAD.Runtime.Exception: eDuplicateKey 在 Autodesk.AutoCAD.Runtime.Interop.Check(Int32 returnValue) 在 AcMgCommandClass.AddCommand(AcMgCommandClass* , ICommandLineCallable ca,... 阅读全文
posted @ 2009-11-25 16:27 houlinbo 阅读(4717) 评论(1) 推荐(0) 编辑
摘要: //将选中实体的指定扩展数据名删除 public void SetNoLinkWire() { short iColor = 2; Document doc = Application.DocumentManager.MdiActiveDocument; Database db = doc.Database; Editor ed = doc.Editor; Transaction tr = db... 阅读全文
posted @ 2009-11-24 11:53 houlinbo 阅读(548) 评论(0) 推荐(0) 编辑