×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# Need help implementing a 3D Rotation Matrix using NXOpen

## Need help implementing a 3D Rotation Matrix using NXOpen

(OP)
Hey Everyone,

I have been trying to programmatically rotate a model 360 degrees a long the Z axis. I don't want any rotation a long the X or Y axis though. The thing is I need to do it in increments, small increments until the rotation is complete. From what I understand in order to rotate the model you have to use a rotation matrix system to do it. I am not entirely familiar with a 3D rotation matrix. Is there anybody who understand how to implement the correct code through a rotation matrix using NXOpen and VB.NET? Specifically to do a full 360 rotation a long the Z axis? Any help is appreciated. Thank you.

### RE: Need help implementing a 3D Rotation Matrix using NXOpen

Hi,

You can use the below format to find a rotation along an axis check image.

So, example if you want to rotate along Z axis 30 degrees the below will be your rotation matrix.

Dim rotation1 As NXOpen.Matrix3x3 = Nothing
rotation1.Xx = 0.86602540378443882
rotation1.Xy = -0.49999999999999967
rotation1.Xz = 0.0
rotation1.Yx = 0.49999999999999967
rotation1.Yy = 0.86602540378443882
rotation1.Yz = 0.0
rotation1.Zx = 0.0
rotation1.Zy = 0.0
rotation1.Zz = 1.0

Regards,
Mukundh

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

#### Resources

White Paper - Design for Additive Manufacturing
With a growing number of parts manufactured directly by additive manufacturing techniques, it is important to lay down design principles suitable for such manufacturing processes and to ensure parts are designed for additive manufacturing. There are several factors that are to be considered at the design stage. Few such design issues in additive manufacturing are discussed in this paper. Download Now

Close Box

# Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!