Lattice2 PD pattern 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!
Post Reply
drmacro
Veteran
Posts: 8865
Joined: Sun Mar 02, 2014 4:35 pm

Lattice2 PD pattern behavior

Post by drmacro »

@DeepSOIC

I'm confused by the behaviour using a spreadsheet as the source...
The lines show the orientation defined in the spreadsheet. The placement kites appear to be correct. But, the resulting pockets aren't what I expected.
And the property "Skip First in body" seems to have no effect...
Snip macro screenshot-4cc8b3.png
Snip macro screenshot-4cc8b3.png (125.58 KiB) Viewed 775 times

Code: Select all

OS: Debian GNU/Linux 11 (bullseye) (XFCE/lightdm-xsession)
Word size of FreeCAD: 64-bit
Version: 0.20.28915 (Git)
Build type: Release
Branch: master
Hash: 7d6243d6961f5c7616b2bcbc844f9abc47eeff9b
Python 3.9.2, Qt 5.15.2, Coin 4.0.0, OCC 7.7.0.dev
Locale: English/United States (en_US)
Installed mods: 
  * kicadStepUpMod 10.12.4
  * Manipulator 1.4.3
  * DynamicData 2.46.0
  * fasteners 0.3.41
  * CubeMenu
  * fcgear 1.0.0
  * plugins
  * Pyramids-and-Polyhedrons
  * Defeaturing
  * Assembly4 0.11.12
  * OpticsWorkbench 1.0.8
  * workfeature-macro
  * sheetmetal 0.2.49
  * A2plus 0.4.56
  * CurvedShapes 1.0.3
  * Curves 0.4.4
  * lattice2 1.0.0
Attachments
Example-Lattice2-Spreadsheet.FCStd
(70.47 KiB) Downloaded 26 times
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
edwilliams16
Veteran
Posts: 3106
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: Lattice2 PD pattern behavior

Post by edwilliams16 »

I can make it work by making the initial pocket along the first axis - but that doesn't make much sense to me.
Screen Shot 2022-05-20 at 7.25.27 AM.png
Screen Shot 2022-05-20 at 7.25.27 AM.png (32.46 KiB) Viewed 727 times
I also get a lot of spreadsheet out-of-scope errors whenever I try to change anything.
Screen Shot 2022-05-20 at 7.24.23 AM.png
Screen Shot 2022-05-20 at 7.24.23 AM.png (25.19 KiB) Viewed 727 times
Attachments
Example-Lattice2-Spreadsheet-EW.FCStd
(122.56 KiB) Downloaded 21 times
drmacro
Veteran
Posts: 8865
Joined: Sun Mar 02, 2014 4:35 pm

Re: Lattice2 PD pattern behavior

Post by drmacro »

edwilliams16 wrote: Fri May 20, 2022 5:26 pm I can make it work by making the initial pocket along the first axis - but that doesn't make much sense to me.

Screen Shot 2022-05-20 at 7.25.27 AM.png

I also get a lot of spreadsheet out-of-scope errors whenever I try to change anything.

Screen Shot 2022-05-20 at 7.24.23 AM.png
Yeah, I was getting the scope errors as well...but, spreadsheets can't be put I to the Body, right?
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
edwilliams16
Veteran
Posts: 3106
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: Lattice2 PD pattern behavior

Post by edwilliams16 »

drmacro wrote: Fri May 20, 2022 9:05 pm Yeah, I was getting the scope errors as well...but, spreadsheets can't be put I to the Body, right?
I tried editing it in through the Body Group property without success.

EDIT: I did it in Part in the other thread - no funny offsets.
drmacro
Veteran
Posts: 8865
Joined: Sun Mar 02, 2014 4:35 pm

Re: Lattice2 PD pattern behavior

Post by drmacro »

edwilliams16 wrote: Fri May 20, 2022 9:28 pm ...
EDIT: I did it in Part in the other thread - no funny offsets.
As did I. ;)
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Lattice2 PD pattern behavior

Post by DeepSOIC »

Hi all! Sorry i haven't replied - i don't hang out on the forum these days, and mentions were not set up to give me an email notification (but from now on, they are).

The reason for this behavior is that the first kite is used as the "handle" to grab the pocket by (aka reference placement). So yes, the first pocket should be placed correctly.

Alternatively, you can provide the placement to grab the pocket by explicitly, as an additional Placement object that should be selected when applying Lattice Pattern. But in this case i recommend going for separate body, as in the tutorial, because Lattice Pattern will not undo the first pocket for you.
drmacro
Veteran
Posts: 8865
Joined: Sun Mar 02, 2014 4:35 pm

Re: Lattice2 PD pattern behavior

Post by drmacro »

DeepSOIC wrote: Fri Jul 08, 2022 4:21 pm Hi all! Sorry i haven't replied - i don't hang out on the forum these days, and mentions were not set up to give me an email notification (but from now on, they are).

The reason for this behavior is that the first kite is used as the "handle" to grab the pocket by (aka reference placement). So yes, the first pocket should be placed correctly.

Alternatively, you can provide the placement to grab the pocket by explicitly, as an additional Placement object that should be selected when applying Lattice Pattern. But in this case i recommend going for separate body, as in the tutorial, because Lattice Pattern will not undo the first pocket for you.
Thanks!
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Post Reply