Life is Good.

Enhance Tech and English
随笔 - 65, 文章 - 20, 评论 - 21, 引用 - 0
数据加载中……

双击CAD对象,显示自定义对话框实现方法 - Double Click Event in AutoCAD


Must be used like this:

 Autodesk.AutoCAD.Interop.AcadDocument acaddoc = (Autodesk.AutoCAD.Interop.AcadDocument)doc.AcadDocument;
 acaddoc.BeginDoubleClick += new _DAcadDocumentEvents_BeginDoubleClickEventHandler(acaddoc_BeginDoubleClick);

NOT like below:
 AcadDocument acaddoc = (AcadDocument)doc.AcadDocument;
 acaddoc.BeginDoubleClick += new _DAcadDocumentEvents_BeginDoubleClickEventHandler(acaddoc_BeginDoubleClick);

The below one can only work well about 3 times in a new/open drawing. It wastes me a whole day to find out! From 8:00PM to 2:00AM.

I think this should be a .NET API defect!

posted on 2010-07-18 02:14 Mike Song 阅读(1325) 评论(2)  编辑 收藏 引用

评论

# re: 双击CAD对象,显示自定义对话框实现方法 - Double Click Event in AutoCAD  回复  更多评论   

you have made some grammar mistakes:
Must be use like this
should be:must be used like this

It waste me ONE whole day to found out!
should be:it wastes me a whole day to find out!

may this be helpful to promote your english
2011-02-27 12:29 | castor

# re: 双击CAD对象,显示自定义对话框实现方法 - Double Click Event in AutoCAD  回复  更多评论   

@castor
Thanks very much!
2011-02-28 10:06 | Mike Song

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理