path array behavior

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!
montyl
Posts: 19
Joined: Tue Jan 22, 2019 5:08 am

Re: path array behavior

Post by montyl »

Forgot to add "and use an array for the bolt holes." :lol:

MontyL
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: path array behavior

Post by wandererfan »

Vincent B wrote: Tue Jan 25, 2022 8:18 pm Agree with that. That's why PathArray has an extra-translation parameter. But an other parameter could be an automatic negative offset.
And what would that negative offset be? Don't see how to calculate it if it is buried in the geometry of the object.
User avatar
Vincent B
Veteran
Posts: 4713
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: path array behavior

Post by Vincent B »

mmm... :roll:
negative center mass ????
montyl
Posts: 19
Joined: Tue Jan 22, 2019 5:08 am

Re: path array behavior

Post by montyl »

Move center mass to Zero makes sense to me. :)

Althought... I'm thinking that FreeCAD should make no such assumption on the user's behalf as the exact result, although predictable, may not be the desired one.

MontyL
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: path array behavior

Post by TheMarkster »

There is a way to change the origin point of an object, provided its Shape property is not immutable.

Move it to the origin, putting the new desired origin point on the origin.
Select the object, Ctrl+Shift+P

In the python console:

Code: Select all

obj.Shape = obj.Shape.copy().transformShape(obj.Placement.toMatrix(),True)
obj.Placement = App.Placement()
Object should now be on the origin with its origin point at the origin.
Post Reply