Can't get component occurence rotation

Can't get component occurence rotation

Anonymous
Not applicable
584 Views
1 Reply
Message 1 of 2

Can't get component occurence rotation

Anonymous
Not applicable

Hi, I'm creating Inventor add-in using C# and Inventor API. I'm exporting geometry using CalculateFacets method of face object, that I get from surface bodies of component occurrence. (Component occurrence > surface body > face > CalculateFacets() ). I need to export each part separately and note each parts translation and rotation.  I will need to reassemble the model at a later stage and also have the ability to swap certain parts (that's why I need to get translation and rotation of component occurrence). I can get translation from occurrence transformation, but I'm struggling to get rotation.

0 Likes
Accepted solutions (1)
585 Views
1 Reply
Reply (1)
Message 2 of 2

Yijiang.Cai
Autodesk
Autodesk
Accepted solution

@Anonymous , it looks that there is no need to get the rotation and translation respectively. We just need to get the original matrix of occurrence,

ComponentOccurrence.Transformation() As Matrix

 

and use it to add this occurrence to new assembly.

ComponentOccurrences.Add( FullDocumentName As String, Position As Matrix )

Thanks,
River Cai

Inventor Quality Assurance Team
Autodesk, Inc.
Email: River-Yijiang.Cai@autodesk.com