How to set new origin of part?

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
User avatar
PedjaS
Posts: 147
Joined: Sat Jan 18, 2020 6:35 pm

How to set new origin of part?

Post by PedjaS »

I've created new part. After some work I finished it and it is all ok except it ended up oddly orientated in coordinate system. It is confusing when used, as it has to be aligned to the rest of the project.

How can I set new zero coordinate and orientation of the part so it is easily used?

I know I can use placement to properly orientate part. but that leaves odd values for coordinates and orientation. What I need to orientate part and then set that (current) orientation as zero, meaning all coordinataes and rotations are zeroed.


OS: Windows 8.1 (6.3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22284 (Git)
Build type: Release
Branch: master
Python version: 3.8.5
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)
chrisb
Veteran
Posts: 53933
Joined: Tue Mar 17, 2015 9:14 am

Re: How to set new origin of part?

Post by chrisb »

PedjaS wrote: Fri Sep 25, 2020 12:55 pm How can I set new zero coordinate and orientation of the part so it is easily used?
See Placement, but usually it is better to model the object in the right place, especially with a well considered center and well considered orientation with respect to the main planes.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
PedjaS
Posts: 147
Joined: Sat Jan 18, 2020 6:35 pm

Re: How to set new origin of part?

Post by PedjaS »

Well sometimes, or better say quite often, when zu are designing thins, it ens up differently than when started and need to change orientation happens.

As I noted I do it now with Placement but that is not nice and tidy solution.
drmacro
Veteran
Posts: 8870
Joined: Sun Mar 02, 2014 4:35 pm

Re: How to set new origin of part?

Post by drmacro »

Could you provide a sample file? (i.e. one you receive from "when zu are designing thins")
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
PedjaS
Posts: 147
Joined: Sat Jan 18, 2020 6:35 pm

Re: How to set new origin of part?

Post by PedjaS »

As simple example: create cube and rotate it 45 degrees. Imagine that is part you created (that might be more complex).

After that, using Transform to align it with other parts in project becomes very odd.
drmacro
Veteran
Posts: 8870
Joined: Sun Mar 02, 2014 4:35 pm

Re: How to set new origin of part?

Post by drmacro »

Manipulator workbench
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
RatonLaveur
Posts: 991
Joined: Wed Mar 27, 2019 10:45 am

Re: How to set new origin of part?

Post by RatonLaveur »

Hi, I am sure I am reviving an old post that had been discussed one way or the other a thousand times, but I cannot exactly pin-point an answer in my searching of the forum.

What about a .step file imported externally? quite often I get .step files that have the strangest origin, sometimes it is a part taken out of context from a large assembly, and therefore has an origin meters away from the part I care about. Tough to design around that.

The question remains: having imported a .step file with an origin that is far away from the actual body, how can I re-center the body to its origin/create new origin for the body?

Many thanks in advance for any piece of clarity you can bring.

Best,
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: How to set new origin of part?

Post by Syres »

RatonLaveur wrote: Tue Oct 12, 2021 2:47 pm The question remains: having imported a .step file with an origin that is far away from the actual body, how can I re-center the body to its origin/create new origin for the body?
https://wiki.freecadweb.org/Macro_MoveToOrigin
User avatar
easyw-fc
Veteran
Posts: 3630
Joined: Thu Jul 09, 2015 9:34 am

Re: How to set new origin of part?

Post by easyw-fc »

RatonLaveur wrote: Tue Oct 12, 2021 2:47 pm The question remains: having imported a .step file with an origin that is far away from the actual body, how can I re-center the body to its origin/create new origin for the body?
Help on moving object to origin
https://forum.freecadweb.org/viewtopic. ... 91#p498091
RatonLaveur
Posts: 991
Joined: Wed Mar 27, 2019 10:45 am

Re: How to set new origin of part?

Post by RatonLaveur »

Thank you very much for these answers. I'll definitely make use of it.
Post Reply