Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • 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
Aug 5, 2004
16
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
 
Replies continue below

Recommended for you

! ----------------------------
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