🎉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

Query info from Card Image

User: "Roshan Shiveshwar"
Altair Community Member
Updated by Roshan Shiveshwar

Hi, 

I am trying to create a script that is supposed to query node information from the Card Image .

 

Is there any API to capture the following information marked in the image below?

 

 

<?xml version="1.0" encoding="UTF-8"?>Capture.JPG

Find more posts tagged with

Sort by:
1 - 8 of 81
    User: "llyle_20499"
    New Altair Community Member
    Updated by llyle_20499

    Hi Roshan,

    You can get the attribute number for each value say X1 by editing it to another number and seeing the command.tcl (usually saved in the documents or working directory). Once you get that information use that in hm_getvalue 

    https://altairhyperworks.com/hwhelp/Altair/2017/help/hm_ref_guide/topics/reference/hm/hm_getvalue.htm 

    User: "Roshan Shiveshwar"
    Altair Community Member
    OP
    Updated by Roshan Shiveshwar

    Thanks Livil for your response.

     

    This method works well for properties. But for nodes, it returns either 1 or 0.

     

    For eg,

    Here, I want to capture the value of attribute 'CD'. The expected value is 3.

    image.png.239e04b14515d494ab0db3180512d6a8.png

    image.png.77c5a1c99d0cf268f51974307785e848.png

     

    Any other way  I can achieve this?

    User: "llyle_20499"
    New Altair Community Member
    Updated by llyle_20499

    Hi, 

    You can try

    hm_getvalue cards id=7222165 dataname=CD. 

     

    I doubt that may work, could you please tell me which profile and panel you're in. 

     

    User: "Roshan Shiveshwar"
    Altair Community Member
    OP
    Updated by Roshan Shiveshwar

    Profile : Nastran

    Panel name: Card Image

    Entity type: Node  (Belongs to CONM2 element)

     

    Thanks

    Roshan

    User: "tinh"
    Altair Community Member
    Updated by tinh

    :rolleyes: CD is just a text, dataname of it is outputsystemid

    User: "Roshan Shiveshwar"
    Altair Community Member
    OP
    Updated by Roshan Shiveshwar

    Thanks tinh.

     

    'hm_getvalue nodes id=7222165 dataname=outputsystemid' worked for me!

     

    BTW, where can we find the list of correct datanames for the attributes?

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Yes, but not all, in hypermesh reference help you search for data names

    There are many attributes than data names, example 'PS' in node's card, with these attribs we need to look solver template

    User: "Roshan Shiveshwar"
    Altair Community Member
    OP
    Updated by Roshan Shiveshwar

    That was useful.

    Thanks a lot ! Appreciate your help.