void GripCback::SetParamsForDraw(AcDbObjectId pEntId, int pGripNumber)
{
entId=pEntId;
gripNumber=pGripNumber;
}
//Hot grip Call back function Implementation
AcDbGripOperations::ReturnValue
GripCback::hotGripfunc(AcDbGripData *pthis,
const AcDbObjectId &entId,
int contextFlags)
{
AcDbGripOperations::ReturnValue gripStat(AcDbGripOperations::eOk);
int index =(int) pthis->appData();
SetParamsForDraw(entId,index);
acDocManager->sendStringToExecute(acDocManager->document(acdbHostApplicationServices()->workingDatabase()),
_T("TVS_Draw\n"), TRUE, FALSE, FALSE);
TSTDSTRING *psApppData = static_cast<TSTDSTRING *>(pthis->appData());
if(psApppData)
{
gripStat=AcDbGripOperations::eGripHotToWarm;
}
else
{
gripStat=AcDbGripOperations::eOk;
}
return gripStat;
}