关于acedSSDel 使用
请问每次运行到 acedssDel 就报错崩溃是怎么回事,能帮忙看下吗。或提示下 怎么选择 多段线以外的 实体。AcDbObjectId objPL = CCadUserClass::SelEntyObjID(_T("\n请选择一个线段"));//选择一条多段线
AcGePoint3dArrayptArry;
CCadObjectClass::GetPLineArrayPotin(objPL,ptArry);
ads_name ssName;
ads_name asName;
AcDbObjectIdArray objIdArry;
acedSSGet(TEXT("A"),NULL,NULL,NULL,ssName);
struct resbuf*prb = new struct resbuf;
struct resbuf*pTem ;
structresbuf* pHead=prb;
prb->resval.rpoint=ptArry.at(0).x;
prb->resval.rpoint=ptArry.at(0).y;
prb->resval.rpoint=ptArry.at(0).z;
prb->restype=RTPOINT;
for (int i=1;i<ptArry.length();i++)
{
pTem =new struct resbuf;
pTem->resval.rpoint=ptArry.at(i).x;
pTem->resval.rpoint=ptArry.at(i).y;
pTem->resval.rpoint=ptArry.at(i).z;
pTem->restype=RTPOINT;
prb->rbnext=pTem;
prb=pTem;
}
prb->rbnext=NULL;
if (!prb)
{
return ;
}
acedSSGet(TEXT("WP"),pHead,NULL,NULL,ssName);
intes = acedSSDel(asName,ssName); // 运行到这一步提示错误
//-----------------------------------------------------
页:
[1]