change origin of component based on a face
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
ive got a 3d printer assembly that i am designing, currently i export the files as mesh , save them as STL, load them in the slicer, orient it to the correct printing orientation and then resave the stl from the slicer so the files are in the correct printing orientation for when users who are building the printer download the files dont have to worry about orienting it correctly.
now ive figured out how to do this manually by moving the body vs moving the component to alter the components origin, but im trying to do this with a script so i can just click a face on the body and it will move the origin of the component so that is on the bottom but also keep the part where it is in the assembly if that makes sense. so far i have a simple script that moves the body based on the face i selected but i want to be able to move it back by moving the component to where it was before it moved the body
if this sounds confusing let me know
here is a simple example
before moving the body, XYZ for the component origin is the same as the documents origin
before the move
after moving the body to be in printing orientation relative to the component origin, then moving the component back to make the body in the same location relative to the document origin , notice how the 2 origins are now different
after moving the body and then moving the component back