Message 1 of 65
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
EDIT: For convenience I'm just adding the latest builds to this first post 🙂
********
I've found that dealing with OLEDRAGDROP / DROPGEOM as well as grip editing makes the handling for my custom objects unnecessarily complicated.
Hence I'm posting my solution to disabling this function for my objects, I don't know if its the best way, but it works.
In your AcApDocManagerReactor::documentLockModeChanged handler you can use something like this:
if (_tcsicmp(pGlobalCmdName, _T("OLEDRAGDROP")) == 0 ||
_tcsicmp(pGlobalCmdName, _T("DROPGEOM")) == 0 ||
_tcsicmp(pGlobalCmdName, _T("DRAGENTER")) == 0)
{
// Prevent objects from being dragged
for (int i = 0; i < aLastSelectionArray.length(); i++)
{
AcDbObjectId objId = aLastSelectionArray[i];
MyObject* pObj = IsMyObject(objId);
if (pObj != NULL)
{
this->veto();
break;
}
}
}
Solved! Go to Solution.

