🎉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

TCL Command to find STATUS of defined Entity

User: "Ashish_MEXPERT"
Altair Community Member
Updated by Ashish_MEXPERT

Hello Everyone,

 

I know how to retrieve the information from already defined entity in a material but i dont know how to get the status of the defined Entity.

 

For Example:  hm_getvalue mats id=4 dataname=E 

 

In this way i get the value of the defined entity in material but how can i know STATUS if the entity is defined or its not defined and activated.

 

What can be the DATANAME to find the STATUS of the DEfined entity in a material.

 

hm_getvalue mats id=4 dataname=E  STATUS= 0 or 1

 

But this approach doesnt works do u have any idea to get this command or Dataname ??

 

 

BR,

 

Ashish

 

Find more posts tagged with

Sort by:
1 - 5 of 51
    User: "Altair Forum User"
    Altair Employee
    Updated by Altair Forum User

    Hi Ashish,

    Can you try with hm_attributelist, which returns a list of all attribute IDs or names assigned to a specific entity for the current template.

    The syntax is hm_attributelist entity_type entity_name_or_id value ?search_type?

    After this you can query for each data name. 

    <?xml version="1.0" encoding="UTF-8"?>hm.PNG

    User: "Ashish_MEXPERT"
    Altair Community Member
    OP
    Updated by Ashish_MEXPERT

    Hi George,

     

    Thanks for your reply !

     

    I am able to get the values of attributes like E NU and RHO with the command hm_getvalue mats id=5 dataname=E 

     

    Problem is If the value is not defined in it then also it fetches the default values defined in the attributes.

     

    I want to know how can i know if the value is really defined in the attributes like E, NU and RHO or it is not defined by the user and it is fetching deafult values in it ?

     

    Thanks !

     

    BR Ashish

    User: "Altair Forum User"
    Altair Employee
    Updated by Altair Forum User

    Hi,

    When we query for a dataname it's showing the previous entry. Even if we remove the value it's still showing the same. I'll check regarding this the concerned team and will update you.

    Meanwhile, if for any dataname no values were provided then it will show as 0.

     

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hi

    Use hm_attributestatus to check status of the attribute

    User: "Ashish_MEXPERT"
    Altair Community Member
    OP
    Updated by Ashish_MEXPERT

    Hi,

     

    Thanks Tinh and George !

     

    hm_attributestatus and hm_defined worked for me.

     

    Regards,

     

    Ashish