ObjectARX双击实体响应的注意事项

作者: admin 分类: C++,CAD,ObjectARX 发布时间: 2020-10-20 23:36

https://blog.csdn.net/qq_40416052/article/details/82730799

【CAD二次开发】-ObjectARX-双击实体的响应 (AcDbDoubleClickEdit)

上面是一个例子,其实这类例子比较多,都很通用。

对于CAD2007~2009,使用时若编译不过,可添加

#include "AcDblClkEdit.h" //for dinfine AcDbDoubleClickEdit
#pragma comment (lib ,"AcDblClkEditPE.lib")


对于CAD2010,上面两名都可以不加,在cpp文件中,添加以下代码可解决编译不过的问题

ACRX_DEFINE_MEMBERS(AcDbDoubleClickEdit);


DbDoubleClickEditCAD2010.rar

https://forums.autodesk.com/t5/objectarx/acdbdoubleclickedit-not-working/td-p/2465702?profile.language=zh-CN

The AcDbDoubleClickEdit functionality that was exposed in AcDblClkEditPE.arx is now rolled up in AcApp.arx and acad.lib.
For AutoCAD 2010 to make double click extension protocol to work.
1. Remove any loadModule() calls to AcDblClkEditPE.arx
2. Remove any calls to AcDbDoubleClickEdit::rxinit() as this is now done automatically for us.
3. Include the AcDblClkEdit.h
4. Add ACRX_DEFINE_MEMBERS(AcDbDoubleClickEdit); in one of your .cpp modules


如果觉得我的文章对您有用,请随意赞赏。您的支持将鼓励我继续创作!

发表评论

标签云