Hyperworks Utility Tab- Error in Tcl Code
Hi,
I am currently trying to make a button, that is like the combine tool, to make a tangent to tangent trim in the surface they are on.
I am using the "hm_getdirectionpanel" to select two points along each of the lines to get a direction vector, however when I try to create a vector from the x, y and z co-ordinates/direction the "hm_getdir..." command spits out, there is an error message that the created vector has zero magnitude.
Attached is the code I used to try and fix what I thought was the problem, but I am still getting the same message.
Any suggestions would be helpful and appreciated.
Thanks,
Michael
Best Answer
-
Hello Michael,
what about the lines below:
set direction [join [hm_getdirectionpanel "Select Line 1 Direction to make tangent to"]]
eval *createvector 1 $direction
Does it help?
Best Regards,
Michael
0
Answers
-
Hello Michael,
what about the lines below:
set direction [join [hm_getdirectionpanel "Select Line 1 Direction to make tangent to"]]
eval *createvector 1 $direction
Does it help?
Best Regards,
Michael
0 -
Michael Herve_21439 said:
Hello Michael,
what about the lines below:
set direction [join [hm_getdirectionpanel "Select Line 1 Direction to make tangent to"]]
eval *createvector 1 $direction
Does it help?
Best Regards,
Michael
Hi,
Yes, thanks!
0