We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.

Ansys Learning Forum Forums Discuss Simulation General Mechanical Getting type string data from Mechanical script to APDL Command Snippets (via ARGs or otherwise) Reply To: Getting type string data from Mechanical script to APDL Command Snippets (via ARGs or otherwise)

Erik Kostson
Ansys Employee
actually this is quite easy and can be automated via a *do loop - so you can write to arg1 how many named selections you have (via act as you showed above) and
then just do a loop in the command snippet to get all their names and to create .txt files with their names:
imax=ARG1
*DO, i, 1, imax, 1
*GET,myfcm%i%,COMP,i,NAME
*CFOPEN,myfcm%i% *CFCLOS
*ENDDO