Query info from Card Image

Roshan Shiveshwar
Roshan Shiveshwar Altair Community Member
edited October 2020 in Community Q&A

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

Tagged:

Answers

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited March 2018

    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 

  • Roshan Shiveshwar
    Roshan Shiveshwar Altair Community Member
    edited March 2018

    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?

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited March 2018

    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. 

     

  • Roshan Shiveshwar
    Roshan Shiveshwar Altair Community Member
    edited March 2018

    Profile : Nastran

    Panel name: Card Image

    Entity type: Node  (Belongs to CONM2 element)

     

    Thanks

    Roshan

  • tinh
    tinh Altair Community Member
    edited March 2018

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

  • Roshan Shiveshwar
    Roshan Shiveshwar Altair Community Member
    edited March 2018

    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?

  • tinh
    tinh Altair Community Member
    edited March 2018

    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

  • Roshan Shiveshwar
    Roshan Shiveshwar Altair Community Member
    edited March 2018

    That was useful.

    Thanks a lot ! Appreciate your help.