|
//ARX隐藏选择到的对象程序
void HideObject(){
long Ename,SSlen;
ads_name SS;
AcDbObjectId ObjID;
AcDbEntity *pEnt;
if (acedSSGet(NULL,NULL,NULL,NULL,SS)!=RTNORM)return;
acedSSLength(SS,&SSlen);
for (int i=0;SSlen>i;i++) {
acedSSName(SS,i,Ename);
acdbGetObjectId(ObjID,Ename);
acdbOpenObject(pEnt,ObjID,AcDb::kForWrite);
pEnt->setVisibility(AcDb::kInvisible,FALSE);
pEnt->close();
}
return;
}[/code] |
|