Difference betweet HM Query and HM Modify commands

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

I was wondering what the difference between the query and modify commands is.

For example: hm_createmark and *createmark are doing the same as far as I see but why are there both?

Regards, Stefan

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2011

    From the online help ( HyperMesh > Reference Guide > Scripts > Creating Scripts > TCL):

    'The functionality of the HyperMesh Tcl Modify commands are available through Tcl. Additionally, commands that allow you to extract information from the HyperMesh database, such as entity id numbers on a mark, a list of assemblies, component names, elements per component, nodes per element, node values, and so forth. These are known as HyperMesh Tcl Query commands. They are used to query information from the database or template system. (...)'

    Regards

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited January 2016

    I was wondering what the difference between the query and modify commands is.

     

    For example: hm_createmark and *createmark are doing the same as far as I see but why are there both?

     

    Regards, Stefan

    From hypermesh manual:
    'With the addition of the HyperMesh Tcl commands, there are a few commands which replace the HyperMesh Modify commands. Specifically there are the hm_createmark and hm_clearmark commands. These commands perform the same functionality as the *createmark and *clearmark commands, but they are the HyperMesh Tcl equivalent. The advantage of using these commands is that it avoids situations where additional Tcl commands need to be used to evaluate the HyperMesh command. Using hm _createmark and hm_clearmark when writing Tcl scripts is the more efficient and recommended method.'
     
  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited July 2018

    For the query commands, how are the outputs from those commands viewed? For instance, if you used the hm_getelementsize, how would you be able to view the response from that command?