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.
Solved by Kyudos. Go to Solution.
Solved by Kyudos. Go to Solution.
Solved by Kyudos. Go to Solution.
AutoCAD 23021 says:
disabledragdrop.arx ist nicht kompatibel mit dieser Version von AutoCAD
Can't find what you're looking for? Ask the community or share your knowledge.