Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Transformation of Occurence is not considered on STL export

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
benef453
236 Views, 2 Replies

Transformation of Occurence is not considered on STL export

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?

2 REPLIES 2
Message 2 of 3
ekinsb
in reply to: benef453

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
Message 3 of 3
benef453
in reply to: ekinsb

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report