Origin reset on export via UI and script

Origin reset on export via UI and script

Anonymous
Not applicable
916 Views
5 Replies
Message 1 of 6

Origin reset on export via UI and script

Anonymous
Not applicable

Hey Guys,

 

how can I export a component with origin at xyz 0/0/0?

 

 

Right now I had the issue, that my 3D models were transformed like "Component 2" in the attached file.

I want to export every component into it's own STEP file, but with an aligned origin at 0/0/0.

I've looked through the forum and the internetz but couldn't find a post about this specific issue.

 

Can I do this with the UI?

Can I do this via script?

 

Or do you have any resources where this topic is already discussed?

 

 

Thanks

0 Likes
917 Views
5 Replies
Replies (5)
Message 2 of 6

jeff_strater
Community Manager
Community Manager

I'm not 100% sure what you want to do, but I'll make a guess.  The reason that Component 2 has moved from its origin is that you have Body Move features in the timeline.  This feature will move the body in relation to its origin.  If you want to move the component, make sure that the move type is set to Component in the Move command.  This will move the component, and its  origin, relative to other components in the design.

 

If all you want to do is to move Component 2's body back to its original location, just select and suppress those Move features:

 

 

 


Jeff Strater
Engineering Director
0 Likes
Message 3 of 6

TrippyLighting
Consultant
Consultant

In the example file you have attached you have moved the bodies within the components away from their origin.

You would not do this is a normal mechanical assembly.

 

Before moving anything you should have converted the 2 bodies into components. Then you should have moved the component , not the body within the component. Then click on the position capture feature.

 

Then, when you export a component it exports with it's local component origin.

 

Something that Fusion 360 unfortunately does not allow is to define an alternative local coordinate system for components that then can be selected as the reference when exporting. So if you are following a top-down assembly process with parts being designed in place their local coordinate system (origin) coincides with the global one and that is the only way to export them.

 


EESignature

0 Likes
Message 4 of 6

Anonymous
Not applicable

Hey Jeff, thanks for your quick reply.

 

I am sorry, I did not give enough clues what my actual problem is and what I am trying to archive:

 

 

I am new to CAD and currently working on a lot of different projects.

 

Often I am the one recieving "some project files", mostly in STEP or IGES.
I need to export every single component and prepare it for 3D printing / CNC milling / manufacturing.

 

Last time I used my export script, which exports all FusionComponent of the active Design into distinct STEP files, I wasn't aware that one component was transformed 0,4 degree on the X axis.

Long story short, I messed up three blocks of material and spend half a day troubleshooting my CNC machine.

 

Yes, I could double check and measure per component/body, but sometimes I have projects with 500+ Components/Bodies, most of them sharing the same Origin but being transformed differently.

 

 

When I enable the timeline on a STEP file I only get those "base feature" events, but I cannot "reverse" all transformations.

 

 

I probably have to draw a bounding box around each component and compare the angle to the X/Y/Z axes.
But before investing half a week in scripting/tinkering I was hoping for a solution.



In the following post there is the same issue, but the components there have their own origins, not sharing basically the same origin.
Since this post is nearly 2 years old I was hoping the export manager may have a proper flag, but I can't find one.

https://forums.autodesk.com/t5/fusion-360-design-validate/reset-a-component-origin/td-p/6762139

 

 

Let me attach the original resetorigin.f3d how I usually receive them:

 

0 Likes
Message 5 of 6

Anonymous
Not applicable

Thanks for your advice,

 

I'm trying my very best to become a "best practices" Fusion Designer. 🙂

 

Until then I often take care of other people projects or get exported projects from other Software like Solidworks, NX, CATIA or e.g. just download random STLs from sharing sites.

 

 

Then I have to take care of this issue without being able to manipulate the timeline.

 

 

I actually totally forgot that my actions are recorded in the timeline, because the timeline is deactivated when you open foreign formats.

 

 

 

But you are giving me a great idea - I could try to update my script to move the components origin center point to the closest component body point, which could solve my problem.

0 Likes
Message 6 of 6

Anonymous
Not applicable

I just don't want to do that by hand for 2087 Components... 

0 Likes