How to display the coordinates of points in Hypermesh

Yi Huo
Yi Huo Altair Community Member
edited December 2020 in Community Q&A

I am a beginner of Hypermesh. How to display the coordinates of points in Hypermesh? Not a node, but a geometric point.

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited December 2020

    Hello,

    It seems that HM doesn't have function to show coords of points (and nodes).

    But we can use a tag to do it, example (copy this script and paste in HM command windows):

    proc showPointCoords args { 	*createmarkpanel points 1 "Select points:" 	foreach pointId [hm_getmark points 1] { 		set x [hm_getentityvalue points $pointId x 0] 		set y [hm_getentityvalue points $pointId y 0] 		set z [hm_getentityvalue points $pointId z 0] 		*tagcreate points $pointId [format "(%.1f  %.1f  %.1f)" $x $y $z] "P$pointId" 2 	} 	*clearmark points 1 } showPointCoords 

     

    (sorry I have edited the code because it referred to point id #1 everytime)

    Tested in HM2019:


    https://www.youtube.com/watch?v=5pcMz58CHEM