Extract node coordinate by TCL
Dear All,
I would like to extract the node coordinate of a selected node using tcl.
In the past i was using the following:
with new release the hm_getentityvalue has been changed to hm_getvalue but seems that I can not extract the X, Y, Z coordinate.
I was thinking to change the previous to:
but it doens't work.
Can someone help me, please?
Thanks a lot,
FF
Answers
-
Hello @FaForno
the syntax for hm_getvalue is not the same than for hm_getentityvalue, you should retrieve detailed information in the online help
basically, itapplies now to all entities (there were many query commands in the past) and the syntax is
hm_getvalue entity_type identifier dataname=...
with entity type being either id=entity_id or name=entity_name or mark=entity_mark
So in your case
hm_getvalue nodes id=$node1 dataname=x
Hope this helps,
Michael
0 -
It works perfectly!
Thank you very much!
Best regards,
Fabio
0