Erik Kostson
Ansys Employee
Make sure you are under prep7 and not begin. So below is an example that prints this text file (just a single number with the number of elements in the model which is 2 in this case).

make sure that there are no blank lines between the lines/apdlcommands in the file (so when you copy paste the below into a text editor remove all blank lines):
so it should look like this:






Also run the .dat file and do not copy paste that - so run say the mwrite.dat file shown above.

Thank you

Erik