🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Hyperworks Utility Tab- Error in Tcl Code

User: "Michael Siemens"
New Altair Community Member
Updated by Michael Siemens

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.

image

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.

image

Any suggestions would be helpful and appreciated.

Thanks,

Michael

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Michael Herve"
    Altair Employee
    Accepted Answer
    Updated by Michael Herve

    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