How to use "Sets" in Materials Studio Scripting

Hello,

I would like to give a group of atoms a name so later on I could use this name in the conditions.

I know that I can use "Sets" but Help in Materials Studio on this matter is poor.....

I would like to take .xsd file and give all the atoms in it a name.

Somebody knows how to do it?

ST