Get count of materials

Ajinkya Gaikwad
Ajinkya Gaikwad Altair Community Member
edited October 2020 in Community Q&A

Hi,

Is there any command which can return the total count of materials. I want to further use that count in looping.

thanks

Tagged:

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • PrasannaK
    PrasannaK
    Altair Employee
    edited November 2019

    Hi Ajinkya,

     

    You can use the following command to return count of material:

     

    *createmark materials 1 all

    hm_marklength materials 1

     

    Thank you

  • sandeepballiwar
    sandeepballiwar New Altair Community Member
    edited November 2019

    You can use the following command to get total count of materials in model

     

    hm_count materials all 0 0

     

     

  • Ajinkya Gaikwad
    Ajinkya Gaikwad Altair Community Member
    edited November 2019

    Thanks A lot it worked!!

     

     

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.