deleteall;
for(i=1:3){
addrect;
set('name','rectangle'+num2str(i));
}
selectpartial('rectangle');
addtogroup('rec');
for(i=1:3){
addcircle;
set('name','circle'+num2str(i));
}
selectpartial('circle');
addtogroup('cir');
#1 for all the elements have the partial name "circle" in the same group;
selectpartial("cir::circle");
delete;
#2 select element one by one;
unselectall;
shiftselect("rec::rectangle1");
shiftselect("rec::rectangle2");
shiftselect("rec::rectangle3");
delete;