[Merged] How to set the origin at the center of the stock?

Here's the place for discussion related to CAM/CNC and the development of the Path module.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: How to set the origin at the center of the stock?

Post by Giulio Buccini »

RatonLaveur wrote: Wed May 20, 2020 7:30 pm
Giulio Buccini wrote: Wed May 20, 2020 7:01 pm Furthermore, it is not a not so immediate operation when your circle is produced by a sequence of boolean operations, so you don't know exactly the circle size and where is his center.
First thing that PathWB Job does, is make a clone of your model. So no problem moving that around. All ops are based on the clone.
Yes, I know. But I meant something different: suppose your circular shape is produced by using one or more boolean operations with a cone cutting another body. You don't know exactly at what height the cone cuts you body. So you have to calculate somehow the diameter in order to move the "clone" of an appropriate distance.
Furthermore, the field in the graphical interface accepts max two decimal digits.
chrisb
Veteran
Posts: 54291
Joined: Tue Mar 17, 2015 9:14 am

Re: How to set the origin at the center of the stock?

Post by chrisb »

Giulio Buccini wrote: Wed May 20, 2020 7:55 pm Furthermore, the field in the graphical interface accepts max two decimal digits.
You can change that in Preferences->General->Units.

I only understand parts of the rest of the discussion very well:
- I understand to a certain extend the wish to keep object and model in sync. It is not really rational, mor a feeling.
- I understand very well the sole existence of the model being to provide something to be moved independently from the object.

So to me it boild down to mere preferences: if you want to keep them in sync, and if it is so important to have a certain point centered, then you should build your model appropriately.

I see many models here starting in the middle of nowhere. I see that it is not always trivial to decide where the center should be, but if there is a natural big zero: use it.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
dtay
Posts: 20
Joined: Fri Jan 17, 2020 12:52 pm

Re: How to set the origin at the center of the stock?

Post by dtay »

Hi,

I think that most CNC machinists will be familiar progressive operations/offsets within in a single program. If you use more than one vise or fixture on your table, your zero will always need to be adjusted for individual offsets.

Image

Just my 2 cents.

-Cheers
User avatar
dubstar-04
Posts: 698
Joined: Mon Mar 04, 2013 8:41 pm
Location: Chester, UK
Contact:

Re: How to set the origin at the center of the stock?

Post by dubstar-04 »

PR: https://github.com/FreeCAD/FreeCAD/pull/3500

This adds the ability to select arcs / circles and faces to set the origin.
oriSel.webm
(534.77 KiB) Downloaded 88 times
Thanks,

Dan
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: How to set the origin at the center of the stock?

Post by Giulio Buccini »

That would be a fantastic feature if added to the next release of the Path Workbench.
RatonLaveur
Posts: 991
Joined: Wed Mar 27, 2019 10:45 am

Re: How to set the origin at the center of the stock?

Post by RatonLaveur »

Hohoho... Real nice! Nifty! Thrifty! Well done!
User avatar
dubstar-04
Posts: 698
Joined: Mon Mar 04, 2013 8:41 pm
Location: Chester, UK
Contact:

Re: How to set the origin at the center of the stock?

Post by dubstar-04 »

Giulio Buccini wrote: Sat May 23, 2020 4:58 pm That would be a fantastic feature if added to the next release of the Path Workbench.
Merged.

Please can you test this and mark the post as [Merged] if you believe the OP to have been resolved?

Thanks,

Dan
Last edited by dubstar-04 on Mon May 25, 2020 8:47 pm, edited 1 time in total.
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: How to set the origin at the center of the stock?

Post by Giulio Buccini »

There is any appimage available for testing?

P.S: what does mean "merged"? Merged means not "solved", or I'm missing something? :oops:
User avatar
dubstar-04
Posts: 698
Joined: Mon Mar 04, 2013 8:41 pm
Location: Chester, UK
Contact:

Re: How to set the origin at the center of the stock?

Post by dubstar-04 »

Giulio Buccini wrote: Mon May 25, 2020 6:30 pm There is any appimage available for testing?

P.S: what does mean "merged"? Merged means not "solved", or I'm missing something? :oops:
Merged means that the PR (Pull Request) has been accepted into FreeCAD.

The code was merged today so should be available in the next appimage.

I hope that makes sense.

Dan
Giulio Buccini
Posts: 541
Joined: Fri Aug 26, 2016 9:07 pm
Location: Munich - Gemany

Re: How to set the origin at the center of the stock?

Post by Giulio Buccini »

Ok. Now it is clear! :D
Post Reply