Jump to content
Sign in to follow this  
Gopal

How to tranform cordinates with respect to csys?

Recommended Posts

Hi all,

 

I have a node , say 659801 and I have coordinates as (138, 150 ,0) and coordinate system id =345

Now, I want the above coordinates with respect to some other coordinate system say, 400.

I am not able to locate HM-APIs which does this transformation?

Please suggest me a way or API to do this transformation of coordinates..

 

Regards

Gopal

 

Share this post


Link to post
Share on other sites

Hi Tinh,

I was able to do the transformation using the command suggested by you.

First I got global x, y z using below commands

    set ngx [hm_getentityvalue nodes $node globalx 0]
    set ngy [hm_getentityvalue nodes $node globaly 0]
    set ngz [hm_getentityvalue nodes $node globalz 0]

Then used the below command for getting coordinate with respect to local system id of need.

set xnode [hm_xpointlocal $n_systemId $ngx $ngy $ngz]    
 set znode [hm_zpointlocal $n_systemId $ngx $ngy $ngz]    

 

It is working perfectly..

Thanks for your valuable suggestion.It saved a lot of time for me.

 

Regards

Gopal

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...