Transformation of Occurence is not considered on STL export

Transformation of Occurence is not considered on STL export

Anonymous
Not applicable
584 Views
2 Replies
Message 1 of 3

Transformation of Occurence is not considered on STL export

Anonymous
Not applicable

I moved an object using the transform property:

 

trans = occ.transform

trans.translation = adsk.core.Vector3D.create(100, 0, 0)

occ.transform = trans

 

If I then export the occurence to STL this translation is not considered. In contrast, moving an object directly in the scene is considered for export.

How can I change the position of an object in the coordinate frame of the exported STL?

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

ekinsb
Alumni
Alumni
Accepted solution

The STL exporter is writing out the component. An occurrence is just a reference to the component so moving the occurrence doesn't have an impact on the referenced component.  One workaround if you need the STL in a specific position and orientation is to move the body within the component.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes
Message 3 of 3

Anonymous
Not applicable

That's what I was searching for, thank you!

0 Likes