🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Get System id using TCL

User: "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

 

Find more posts tagged with

Sort by:
1 - 4 of 41

    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

    User: "Meiyarasu@2410"
    Altair Community Member
    OP

    Thank you for the information.

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

    User: "Adriano_Koga"
    Altair Employee
    Accepted Answer

    yes, it is the same.

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

    User: "Meiyarasu@2410"
    Altair Community Member
    OP

    Thank you so much