AcGePoint3d point(0, 0,0);
AcDbEntity* pEntity;
pBlockIterator->getEntity(pEntity, AcDb::kForWrite);
// Какой-то код
acdbGetAdsName(entname, pEntity->id());
int value = acedCommandS(RTSTR, _T("_EXTRIM"), RTENAME, entname, RT3DPOINT, point, RTNONE);
acutPrintf(_T("acedCommandS return %d\n"), value);
pEntity->close();