How to automatically generate structure based on CAS number or IUPAC name

Hi,

I am using Materials Studio to build up my QSAR model. I have quite a lot of structures as training sets (~2,000). Each one as a CAS and IUPAC name to it. I was wondering if there is an automatic method I can use to generate those structures based on the CAS number or IUPAC name? Thank you very much.