设置命令执行后的结果.,pArgs指向的变量,用户不需要释放
ARXDLL void mcedSetRetArgs(struct resbuf* pArgs);
Mcedads.h
例如:
void CDrawCommand::DrawRadialDimension() { MrxDbgRbList spFilter = Mx::mcutBuildList(RTDXF0,_T("CIRCLE,ARC"),0); McDbObjectId objId; McGePoint3d ptPick; if(MrxDbgUtils::selectEnt(_T("选择圆弧或圆:"),spFilter.data(),objId,ptPick) != RTNORM) { return; } McDbRadialDimension* pDim = new McDbRadialDimension; pDim->setDimensionStyle(Mx::mcdbHostApplicationServices()->workingDatabase()->dimstyle() ); CDrawRadialDimensionJig jig(pDim,objId,ptPick); if(jig.DoIt() ) { double dRet = pDim->center().distanceTo(pDim->chordPoint()); MrxDbgUtils::addToCurrentSpaceAndClose(pDim); Mx::mcedSetRetArgs(Mx::mcutBuildList(RTREAL,dRet,0) ); } else { delete pDim; } }