• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Inventor Customization

    Reply
    Valued Contributor
    cean_au
    Posts: 99
    Registered: ‎07-11-2011

    how to place a part along a line?

    38 Views, 0 Replies
    03-25-2012 07:51 PM

    Hi,

     

    I know the start and end points of a line, but can't figure out how to place a part alone it using vb.net. For example, the line is from (0,0,0)-(1,1,1)

     

    For the oMatrix, I can translation to the start point, but how to calculate the rotation angle? The yaw angle can be the rotation angle about Z axis. From the pitch angle, could I get the rotation angle about X axis & Y axis?

     

    Thanks for help

     

    Cean

     

     

    Please use plain text.