Want to know about [hm_getmarkvalue elements 1 config 0] command]

Akshay Manthekar
Akshay Manthekar Altair Community Member
edited June 2022 in Community Q&A

Hi guys,

I am using Hypermesh 2017.3 version.

I could not find the above mentioned command: [hm_getmarkvalue elements 1 config 0] in altair documentation.

Does anyone know what this command does? 

Your help is much appreciated. Thanks in advance!!

Best Answer

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited June 2022 Answer ✓

    Hi Ben,

    Thanks for the response.

    Would you care to explain me what is the configuration of an element? Is it the type of element like CTRIA6/CQUAD8, etc. and also I wanted to know if hypermesh assigns any integer value to them?

    I am attaching below code snippet so that you would understand it more clearly.

    image

     

    In above code its appending nodes if their configuration value > 200. I wanna know this part.

    Thanks and waiting for your reply.

    Any help is much appreciated !

    Yes the configuration is the type as you said. Yes they have associated integer values.  Below is an example for the OptiStuct profile.  I used hm_entityinfo configids elements to get those ids and hm_entityinfo configs elements to get the names.

    image

    So in your code it looks like you will create a list of solid elements attached to a mark of nodes.

Answers

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited June 2022

    hm_getmarkvalue gets the values of the entities on a mark. So for [hm_getmarkvalue elements 1 config 0] it would get the configurations of the elements on mark 1.

     

    hm_getvalue has a mark selection option now (not sure this will work in 2017) which replaces the functionality of hm_getmarkvalue. See the help below.

    hm_getvalue help page

    hint for searching commands in the help: you have to use the full name. ex. hm_getmarkvalue will get you a few items one of which is a list of deprecated commands, which will give you the command that replaces it (hm_getvalue).  However if you just type getmarkvalue you get nothing.  However if you search "get mark value" hm_getvalue is the first result.

  • Akshay Manthekar
    Akshay Manthekar Altair Community Member
    edited June 2022

    Hi Ben,

    Thanks for the response.

    Would you care to explain me what is the configuration of an element? Is it the type of element like CTRIA6/CQUAD8, etc. and also I wanted to know if hypermesh assigns any integer value to them?

    I am attaching below code snippet so that you would understand it more clearly.

    image

     

    In above code its appending nodes if their configuration value > 200. I wanna know this part.

    Thanks and waiting for your reply.

    Any help is much appreciated !

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited June 2022 Answer ✓

    Hi Ben,

    Thanks for the response.

    Would you care to explain me what is the configuration of an element? Is it the type of element like CTRIA6/CQUAD8, etc. and also I wanted to know if hypermesh assigns any integer value to them?

    I am attaching below code snippet so that you would understand it more clearly.

    image

     

    In above code its appending nodes if their configuration value > 200. I wanna know this part.

    Thanks and waiting for your reply.

    Any help is much appreciated !

    Yes the configuration is the type as you said. Yes they have associated integer values.  Below is an example for the OptiStuct profile.  I used hm_entityinfo configids elements to get those ids and hm_entityinfo configs elements to get the names.

    image

    So in your code it looks like you will create a list of solid elements attached to a mark of nodes.

  • Akshay Manthekar
    Akshay Manthekar Altair Community Member
    edited June 2022

    Thanks a lot Ben for letting me know about this stuff.

    By the way, do you have any idea about how these values are calculated? (Asking just out of curiosity) and are these different for different profile?

     

    Thanks and regards,

    Akshay

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited June 2022

    Thanks a lot Ben for letting me know about this stuff.

    By the way, do you have any idea about how these values are calculated? (Asking just out of curiosity) and are these different for different profile?

     

    Thanks and regards,

    Akshay

    They numbers don't change in different profiles but the entities available does.  See the table below for the Radioss profile.  Not all the types available in OptiStruct are available in Radioss. Not sure how they are picked but there is certainly some logic to it as all the 2D elements are in the 100s 3D in the 200s and also a hex20 is 220 and such.

    Also, here is a link to the help that talks about elements.

    https://2022.help.altair.com/2022/hwdesktop/hwx/topics/pre_processing/entities/elements_r.htm#entity_elements_r

    image