Finding max material number
Finding max material number
(OP)
I am writing several macros that I can use on multiple different models and would like to determine the maximum real number, element type number, and material number, I am using *get,param,ETYP,,NUM,MAX to get the max et#, *GET,param,RCON,,NUM,MAX to get the max real#, but have found no equivalent command to find the max material number that is defined. Is there an easy way to find this?
Thanks,
Scott
Thanks,
Scott





RE: Finding max material number
fini
/prep7
*set,last_mp
*GET,last_mp,MAT,0, NUM, MAX
*stat
! ----------------------------
Cheers,
-- drej --
RE: Finding max material number
matnum = mpinqr(0,12,0) ! returns no. defined materials
RE: Finding max material number
http://ansys.net/ansys/?mycat=uf_inquiry