×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Finding max material number

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

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

matmax = mpinqr(0,14,0) ! returns max. material no. defined
matnum = mpinqr(0,12,0) ! returns no. defined materials

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources