Chandra Sekaran
Ansys Employee

You can use *GET command to get a list of component names and then compare against that list. Something along this line.

*get,ncomp,comp,,ncomp  ! get number of components in your model

*dim,names,string,80,ncomp   ! create a string array that can have up to 80 characters




Then in a loop check your component name against this list?