How to browse criteria file through HM API

Sagar Patil
Sagar Patil Altair Community Member
edited June 21 in Community Q&A

I want to browse element criteria file (..criteria) through Hypermesh Api. is there any Api/command available in HM 2029.1 for browsing it.

Tagged:

Answers

  • Paulo  Libório
    Paulo Libório New Altair Community Member
    edited June 20

    Hello Sagar,

    What do you mean by browsing the criteria file? It's a text file that can be queried/modified by using string commands from TCL:

    image

    When you change criteria from the GUI, you basically get three commands:

    *setqualitycriteria (altair.com)
    *createstringarray (altair.com)
    *elementchecksettings (altair.com)

    Which fundamentally is creating a text table (*createstringarray), calculating the quality checks based on solver profile (*elementchecksettings) and overwriting the criteria file (*setqualitycriteria). 

    Kind Regards,
    Paulo Libório.

     

  • Sagar Patil
    Sagar Patil Altair Community Member
    edited June 21

    Hello Sagar,

    What do you mean by browsing the criteria file? It's a text file that can be queried/modified by using string commands from TCL:

    image

    When you change criteria from the GUI, you basically get three commands:

    *setqualitycriteria (altair.com)
    *createstringarray (altair.com)
    *elementchecksettings (altair.com)

    Which fundamentally is creating a text table (*createstringarray), calculating the quality checks based on solver profile (*elementchecksettings) and overwriting the criteria file (*setqualitycriteria). 

    Kind Regards,
    Paulo Libório.

     

    Thank you so much for reply Paulo.

    For other aspect this solution is correct, but in my case if i want to go for rebuild mesh and when i go for edit criteria and edit parameter file option then it will browse default criteria and parameter file which is specified in Altair Hypermesh code which is specified at some location.

    Consider i have one criteria and parameter file which i have saved at my local location. so if i want to browse that criteria & Param file, currently the standard practice is to browse it manually from open file option.

    You can see the attachment for details. So rather than opening/browsing the file manually i want to do it by automation. So for that any API is available for it.

  • Paulo  Libório
    Paulo Libório New Altair Community Member
    edited June 21

    Thank you so much for reply Paulo.

    For other aspect this solution is correct, but in my case if i want to go for rebuild mesh and when i go for edit criteria and edit parameter file option then it will browse default criteria and parameter file which is specified in Altair Hypermesh code which is specified at some location.

    Consider i have one criteria and parameter file which i have saved at my local location. so if i want to browse that criteria & Param file, currently the standard practice is to browse it manually from open file option.

    You can see the attachment for details. So rather than opening/browsing the file manually i want to do it by automation. So for that any API is available for it.

    Oh! I see.

    You should use *readqualitycriteria (altair.com)

    Example: image

  • Sagar Patil
    Sagar Patil Altair Community Member
    edited June 21

    Oh! I see.

    You should use *readqualitycriteria (altair.com)

    Example: image

    Thank you so much Paulo

    This is command really works, Thank you once again