How to display the coordinates of points in Hypermesh
Yi Huo
Altair Community Member
Answers
-
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:
3