Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding max material number 1

Status
Not open for further replies.

ScottMf

Mechanical
Joined
Aug 5, 2004
Messages
16
Location
US
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
 
! ----------------------------
fini
/prep7
*set,last_mp
*GET,last_mp,MAT,0, NUM, MAX
*stat
! ----------------------------

Cheers,

-- drej --
 
matmax = mpinqr(0,14,0) ! returns max. material no. defined
matnum = mpinqr(0,12,0) ! returns no. defined materials
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top