Try this: sds_resbuf *P1; sds_resbuf *P2; sds_ssgetfirst(&P1,&P2); if (P2==NULL) sds_command(RTSTR,"_select",RTSTR,"",RTNONE); else sds_command(RTSTR,"_select",RTNONE); sds_ssget(NULL,NULL,NULL,NULL,pSelSet); long sslen; sds_sslength(pSelSet,&sslen); return sslen; > in autolisp i use (ssget) but in sds i have more problems with > sds_ssget > i can't find example . > this function have 4 parameters but give errors. > i want to select the objects for rotate. > in autolisp : (setq entname(ssget)) > (command "_rotate" entname etc > > i want to convert (setq entname(ssget)) in sds