Get System id using TCL

Meiyarasu@2410
Meiyarasu@2410 Altair Community Member

Description: i am trying to get the system id assigned to an CBUSH element using hm_getentityvalue command like the following,

set prop_id [hm_getentityvalue elems $elem_id "propertyid" 0 -byid].

please help me with this

Product/Topic Name : Hypermesh, TCL, script

 

Tagged:

Best Answer

  • Adriano_Koga
    Adriano_Koga
    Altair Employee
    Answer ✓

    yes, it is the same.

    Run the entity_attribute_table.tcl to get the datanames associated to any entity in HM.

Answers

  • Adriano_Koga
    Adriano_Koga
    Altair Employee

    what solver are you using?

    If you're suing OptiStruct, and CBUSH, you could use something like

    hm_getvalue elements id=$elem_id dataname=CBCID

    Usually I take one of the entities in my model, and I run the attached script from the installation.

    With this script, you pick one entity of your model, and it will show the datanames specific to the solver, that you can call from the hm_getvalue command.

    image.png

    For other basic values you could use the basic datanames:

    % hm_getvalue elems id=2 dataname=collector

    2

    % hm_getvalue elems id=2 dataname=collector.name

    CBUSH1D

    % hm_getvalue elems id=2 dataname=node1

    1

    % hm_getvalue elems id=2 dataname=node2

    5

    %

    % hm_getvalue elems id=2 dataname=property.id

    2

    % hm_getvalue elems id=2 dataname=property.name

    PBUSH1D

  • Meiyarasu@2410
    Meiyarasu@2410 Altair Community Member

    Thank you for the information.

    i am using Nastran solver. i will try CBCID command. will it work in Nastran solver?

  • Adriano_Koga
    Adriano_Koga
    Altair Employee
    Answer ✓

    yes, it is the same.

    Run the entity_attribute_table.tcl to get the datanames associated to any entity in HM.

  • Meiyarasu@2410
    Meiyarasu@2410 Altair Community Member

    Thank you so much