Erik Kostson
Ansys Employee
Hi

We can then use apdl command snippet under the solution section (so in post1).

Find the section id (secid) from the ds.dat file or if it is the only section then it is 1.

The apdl command is:

/post1
secid= 1 ! this should be the section id number, that is used in the ds.dat file
*GET, my_CG, SECP, secid, PROP, CGZ ! or CGY

This will make my_CG available as parameter in the command snippet details.
See here for details: