Get cylindrical coordinates of a node

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

How should i get these X1, X2 and X3 values for a selected node in the image.

If i use 

 hm_nodevalue $node_id

It returns me X,Y,Z values as per WCS.

But what i want is to get as shown in this window. 

Or may be if i can get local CSYS reference axis.

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

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited October 2017

    Hi

    They are local coords retieved by datanames localx localy localz

    set X1 [hm_getentityvalue nodes $node_id localx 0]

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited October 2017

    Hi

    They are local coords retieved by datanames localx localy localz

    set X1 [hm_getentityvalue nodes $node_id localx 0]

    Hi Tinh, That works well... thanks for your quick help