Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

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)

ErKo
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

[bingo_chatbox]