How to calculate the relative orientation of a part with Coordinate System?

How to calculate the relative orientation of a part with Coordinate System?

amitabhVA4SD
Advocate Advocate
572 Views
4 Replies
Message 1 of 5

How to calculate the relative orientation of a part with Coordinate System?

amitabhVA4SD
Advocate
Advocate

Happy New Year!

 

How can we calculate the relative orientation of a part with the Part Axis system?

Please see below image. The Part is oriented along the X-Axis but not oriented along the Y and Z-Axis.  I need to find the relative orientation of the Part. I created the UCS just to show the auxiliary orientation of the part.

amitabhVA4SD_0-1641603016833.png

 

amitabhVA4SD_1-1641603067104.png

 

I need to then apply this orientation to create a custom Design View Representation and Camera using the Eye, Target and the Up-Direction.

 

Please help. Any form of input would be helpful. Thanks!

 

Thanks,

Amitabh Mukherjee

 

0 Likes
573 Views
4 Replies
Replies (4)
Message 2 of 5

Ralf_Krieg
Advisor
Advisor

Hello

 

Can you post this part with UCS, so we can see how the part is oriented in original? As I understand the UCS is only for demonstration and will not exist in productive parts later, right? How is the orientation of this UCS defined?


R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes
Message 3 of 5

amitabhVA4SD
Advocate
Advocate

@Ralf_Krieg  - I have uploaded couple of oriented parts.

The UCS is placed temporarily at one of the Part corners aligned to the default Part co-ordinate system.

Thank you for your help!

 

Amitabh Mukherjee

0 Likes
Message 4 of 5

Ralf_Krieg
Advisor
Advisor

Hello

 

Sorry for late reply. I need to ask further, i'm not clear at all.

Should the part body be rotated in coordinate system to align to it? Or should the body be moved to the parts origin? Or do you only need to move/rotate the camera to a specific point and create the design view?


R. Krieg
RKW Solutions
www.rkw-solutions.com
0 Likes
Message 5 of 5

amitabhVA4SD
Advocate
Advocate

Sorry @Ralf_Krieg, I was caught up with another Inventor issue. This issue is solved.

It is to do with rotating the camera and the maths involved with it to define the vectors if the part is an oriented one. The Logic that I had put in the program was correct. The input to the API was incorrect and that was the reason of the incorrect view representation orientation.
Thank you for your help!

0 Likes