|
发表于 2003-2-24 22:04:00
|
显示全部楼层
int asdkGetCurrentSelectionSet(AcDbObjectIdArray &sset)
{
ads_name ss;
if ((int ret=acedSSGet(NULL,NULL,NULL,NULL,ss))!=RTNORM)
return ret;
long l;
if (acedSSLength(ss,&l)!=RTNORM)
return;
ads_name ename;
sset.LogicalLength = 0;
AcDbObjectId id;
for (long i=0;i<l;i++)
{
if (acedSSName(ss,i,ename)!=RTNORM)
return;
if (acdbGetObjectId(id,ename)!=Acad::eOk)
return;
sset.append(id);
}
acedSSFree(ss);
return ret;
} |
|