A program to recognize and reward our most engaged community members
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"?>
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
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.
Any other way I can achieve this?
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.
Profile : Nastran
Panel name: Card Image
Entity type: Node (Belongs to CONM2 element)
Thanks
Roshan
CD is just a text, dataname of it is outputsystemid
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?
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
That was useful.
Thanks a lot ! Appreciate your help.