about command "hm_getentityvalue"

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

Dear members,

I check the command 'hm_getentityvalue entityType' in help doc of hypermesh, and get the following:

'hm_getentityvalue entityType name_or_id valueString outputFlag searchType'

and:

'valueString Template system data name.' there is no detail for this one, I use hypermesh for abaqus 2d.

So how to get 'Template system data name' correctly? There is any doc about it?

'entityType The type of the entity.' there is no detail for this parameter either. How to find the doc about these kinds of parameters?

I tried the following sentences in my TCL file:

set Nz [hm_getentityvalue SURFACES '+2' 'normalz' 0]

puts $fid $Nz

And I check output file there is only '0' was outputted. But in my model the normal of surface with id 2 is same with negative z axis. What's wrong in above code?

Any suggestions or hints will be greatly appreciated.

Richard.

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2011

    Richard

    The 'template system data name' is the label used by HM to keep track of all the variables assigned in the templates for each solver. For Abaqus 2D, for example

    *string('*ELASTIC')

    *if([$Elastic_Depend_Exist == 1])

    *string(', DEPENDENCIES = ')

    *field(integer,$Elastic_Depend,5)

    *endif()

    *if([$Elastic_Moduli_Exist == 1])

    *string(', MODULI = ')

    *field(string,$Elastic_Moduli,12)

    *endif()

    the Elastic_Depend and Elastic_Moduli variables are template data names you can request via the hm_getentityvalue command.

    A couple of great resources here are in the online help for HM. Check out the Reference Guide, Custom Templates, Commands and Functions, Data Names for links to all the available types for each entity. Normalz is not a data name that is available for surface entities. See also Reference Guide, Scripts, Creating Scripts, TCL, Using Data Names and Using Solver Attributes and Data Names for more info.

    Cheers,

    Eric