(workaround) Array is moved

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
thomas-neemann
Veteran
Posts: 11800
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

(workaround) Array is moved

Post by thomas-neemann »

if the part that is to be duplicated is not at the origin, it shifts


https://www.youtube.com/watch?v=359KvzE4l-4

phpBB [video]




tn1556.FCStd
(10.21 KiB) Downloaded 17 times



OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.27319 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 67706b1)
Hash: 67706b14df32b91b948952ea2c9350948ba4d4db
Python version: 3.9.10
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: German/Germany (de_DE)
Last edited by thomas-neemann on Sun Feb 06, 2022 5:51 pm, edited 1 time in total.
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
thomas-neemann
Veteran
Posts: 11800
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Array is moved

Post by thomas-neemann »

probably the error is that the array has a wrong placement
e1.png
e1.png (47.75 KiB) Viewed 1182 times
e2.png
e2.png (50.13 KiB) Viewed 1182 times
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: Array is moved

Post by chrisb »

That's normal behaviour. These are new objects with their own placement. It's different from PartDesign features.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
thomas-neemann
Veteran
Posts: 11800
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Array is moved

Post by thomas-neemann »

chrisb wrote: Sun Feb 06, 2022 5:03 pm That's normal behaviour. ...
thanks for the hint. a test with another array confirms this.

e4.png
e4.png (36.08 KiB) Viewed 1153 times


the displacement corresponds to the position of the array to the origin. that could be a clue
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: Array is moved

Post by Roy_043 »

thomas-neemann wrote: Sun Feb 06, 2022 3:03 pm if the part that is to be duplicated is not at the origin, it shifts
That description is not correct as you have already found out I guess: the first path array has a default Placement, therefore it is at the origin.

Workaround:
  1. Create a Std_Part.
  2. Move it to the desired vertex of one of the solids in the 1st path array (with Draft_Move).
  3. Make sure Std_TreeSyncPlacement is ON.
  4. Drop the 1st path array in the Std_Part
  5. Use the Std_Part as the Base for the 2nd path array.
User avatar
thomas-neemann
Veteran
Posts: 11800
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Array is moved

Post by thomas-neemann »

Roy_043 wrote: Sun Feb 06, 2022 5:33 pm ping
that sounds good, thanks. I will test and report here. but it is strange that it works with the normal array
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
thomas-neemann
Veteran
Posts: 11800
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Array is moved

Post by thomas-neemann »

Roy_043 wrote: Sun Feb 06, 2022 5:33 pm ping
it works. thanks, it's a good workaround, but shouldn't that be changed?
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: (workaround) Array is moved

Post by Roy_043 »

Not sure what you mean. What we are seeing here is common in FreeCAD. The Placement Base of an object need not match any of its geometry. Try offsetting a Draft_Wire f.e.
User avatar
thomas-neemann
Veteran
Posts: 11800
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: (workaround) Array is moved

Post by thomas-neemann »

Roy_043 wrote: Sun Feb 06, 2022 6:03 pm ping
I find it a bit confusing that it works with the normal array and not with the path array
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: (workaround) Array is moved

Post by chrisb »

It's not really different from the normal Array, but with PathArray it's the path which determines the position, not the object.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply