www.mxdraw.com
内容索引主面
前一个向上下一个
Mx::mcedSetRetArgs 函数

设置命令执行后的结果.,pArgs指向的变量,用户不需要释放

C++
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;
            }
        }
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!