Lattice2 Workbench
align=center|The FreeCAD Lattice2 External Workbench Icon
Introduction
Lattice2 is stable. New features may be added, but no breaking changes are supposed to happen.
The Lattice2 Workbench is a FreeCAD external workbench that serves the purpose of working with placements and arrays of placements. It is a sort of Assembly workbench, but with emphasis on arrays. There are no constraints and relations, there are just arrays of placements that can be generated, combined, transformed, superimposed, and populated with shapes.
Ever wondered how to create a protractor with FreeCAD? That\'s the aim of the workbench (including tick labeling). Also, exploded assemblies can be made with the workbench.
Additionally, the workbench features a few general-purpose tools, such as parametric downgrade, bounding boxes, shape info tool, and tools for working with collections of shapes (compounds).
One of the big design goals of the workbench is being as parametric as possible.
References
- Author: DeepSOIC
- Home page: https://github.com/DeepSOIC/Lattice2
- Source code on github: https://github.com/DeepSOIC/Lattice2
Tools
Detailed description on the Lattice2 Github wiki
Toolbar
Lattice2 Toolbar
Commands
-
[Placement](wiki-test2.php?gitpage=Lattice2_Placement) -
[Single Placement: Custom](wiki-test2.php?gitpage=Lattice2_Placement) -
[Single Placement: XY plane](wiki-test2.php?gitpage=Lattice2_Placement) -
[Single Placement: XZ plane](wiki-test2.php?gitpage=Lattice2_Placement) -
[Single Placement: YZ plane](wiki-test2.php?gitpage=Lattice2_Placement) -
[Single Placement: along X](wiki-test2.php?gitpage=Lattice2_Placement) -
[Single Placement: along Y](wiki-test2.php?gitpage=Lattice2_Placement) -
[Single Placement: along Z](wiki-test2.php?gitpage=Lattice2_Placement) -
[Single Placement: Euler angles](wiki-test2.php?gitpage=Lattice2_Placement) -
[Placement of shape: Copy object.Placement](wiki-test2.php?gitpage=Lattice2_PlacementFromShape) -
[Placement of shape: Center of bounding box](wiki-test2.php?gitpage=Lattice2_PlacementFromShape) -
[Placement of shape: Center of mass](wiki-test2.php?gitpage=Lattice2_PlacementFromShape) -
[Placement of shape: Inertial axis system](wiki-test2.php?gitpage=Lattice2_PlacementFromShape)
-
[Attachable Placement](wiki-test2.php?gitpage=Lattice2_AttachablePlacement)
-
[Generate linear array](wiki-test2.php?gitpage=Lattice2_LinearArray)
-
[Generate polar array](wiki-test2.php?gitpage=Lattice2_PolarArray)
-
[Array from shape](wiki-test2.php?gitpage=Lattice2_ArrayFromShape) -
[Internal placements](wiki-test2.php?gitpage=Lattice2_ArrayFromShape) -
[Center of bounding box](wiki-test2.php?gitpage=Lattice2_ArrayFromShape) -
[Center of mass](wiki-test2.php?gitpage=Lattice2_ArrayFromShape) -
[Inertial axis system](wiki-test2.php?gitpage=Lattice2_ArrayFromShape)
-
[Invert lattice](wiki-test2.php?gitpage=Lattice2_InvertLattice)
-
[Join arrays](wiki-test2.php?gitpage=Lattice2_JoinArrays)
-
[Array filter](wiki-test2.php?gitpage=Lattice2_ArrayFilter) -
[Selected items](wiki-test2.php?gitpage=Lattice2_ArrayFilter) -
[Touching](wiki-test2.php?gitpage=Lattice2_ArrayFilter) -
[Within distance window](wiki-test2.php?gitpage=Lattice2_ArrayFilter) -
[Pointing at shape](wiki-test2.php?gitpage=Lattice2_ArrayFilter)
-
[Explode array](wiki-test2.php?gitpage=Lattice2_ExplodeArray)
-
[Project array](wiki-test2.php?gitpage=Lattice2_ProjectArray)
-
[Resample array](wiki-test2.php?gitpage=Lattice2_ResampleArray)
-
[Populate with copies](wiki-test2.php?gitpage=Lattice2_PopulateCopiesNormal) -
[Populate with copies](wiki-test2.php?gitpage=Lattice2_PopulateCopiesNormal) -
[Populate with copies: Build array](wiki-test2.php?gitpage=Lattice2_PopulateCopiesArray) -
[Moved object](wiki-test2.php?gitpage=Lattice2_PopulateCopiesMove)
-
[Populate with children](wiki-test2.php?gitpage=Lattice2_PopulateChildrenNormal) -
[Populate with children](wiki-test2.php?gitpage=Lattice2_PopulateChildrenNormal) -
[Populate with children: Build array](wiki-test2.php?gitpage=Lattice2_PopulateChildrenArray) -
[Moved children](wiki-test2.php?gitpage=Lattice2_PopulateChildrenMove)
-
[Parametric downgrade](wiki-test2.php?gitpage=Lattice2_ParametricDowngrade) -
[Downgrade to ](wiki-test2.php?gitpage=Lattice2_ParametricDowngrade) -
[Downgrade to Leaves](wiki-test2.php?gitpage=Lattice2_ParametricDowngrade) -
[Downgrade to CompSolids](wiki-test2.php?gitpage=Lattice2_ParametricDowngrade) -
[Downgrade to Shells](wiki-test2.php?gitpage=Lattice2_ParametricDowngrade) -
[Downgrade to OpenWires](wiki-test2.php?gitpage=Lattice2_ParametricDowngrade) -
[Downgrade to Faces](wiki-test2.php?gitpage=Lattice2_ParametricDowngrade) -
[Downgrade to Wires](wiki-test2.php?gitpage=Lattice2_ParametricDowngrade) -
[Downgrade to Edges](wiki-test2.php?gitpage=Lattice2_ParametricDowngrade) -
[Downgrade to Seam edges](wiki-test2.php?gitpage=Lattice2_ParametricDowngrade) -
[Downgrade to Non-seam edges](wiki-test2.php?gitpage=Lattice2_ParametricDowngrade) -
[Downgrade to Vertices](wiki-test2.php?gitpage=Lattice2_ParametricDowngrade)
-
[Sub link](wiki-test2.php?gitpage=Lattice2_SubLink)
-
[Make compound](wiki-test2.php?gitpage=Lattice2_MakeCompound)
-
[Explode compound](wiki-test2.php?gitpage=Lattice2_ExplodeCompound)
-
[Fuse compound](wiki-test2.php?gitpage=Lattice2_FuseCompound)
-
[Bounding box](wiki-test2.php?gitpage=Lattice2_BoundingBox) -
[Whole](wiki-test2.php?gitpage=Lattice2_BoundingBox) -
[Children](wiki-test2.php?gitpage=Lattice2_BoundingBoxCompound)
-
[Shape string for array](wiki-test2.php?gitpage=Lattice2_ShapeString)
-
[Para series](wiki-test2.php?gitpage=Lattice2_ParaSeries)
-
[Inspect](wiki-test2.php?gitpage=Lattice2_Inspect) -
[Inspect seletion](wiki-test2.php?gitpage=Lattice2_InspectSelection) -
[Shape info (feature)](wiki-test2.php?gitpage=Lattice2_InspectShape)
-
[Substitute object](wiki-test2.php?gitpage=Lattice2_SubstituteObject)
- Expose links to subelements
Other
- Recomputes
-
[Make recompute locher object](wiki-test2.php?gitpage=Lattice2_RecomputeMakeFeature):
-
[Lock recomputes](wiki-test2.php?gitpage=Lattice2_RecomputeLock):
-
[Unlock recomputes](wiki-test2.php?gitpage=Lattice2_RecomputeUnlock):
-
[Recompute feature](wiki-test2.php?gitpage=Lattice2_RecomputeFeature):
-
[Recompute document](wiki-test2.php?gitpage=Lattice2_RecomputeDocument):
-
[Force recompute](wiki-test2.php?gitpage=Lattice2_RecomputeForce):
-
[Touch selected feature](wiki-test2.php?gitpage=Lattice2_RecomputeTouch):
-
-
Lattice2 Workbench icon
Installation
Prerequisites: Lattice2 Workbench requires FreeCAD >= v0.16.5155.
Automatic installation
As of v0.17 one can use the Addon Manager to install the
Lattice2 Workbench. Use
Tools → Addon Manager
Manual Install
- Scroll to the top of the page, and click \'download zip\' button
- Unpack the contents into a \"Lattice2\" folder created in \Path\to\FreeCAD\Mod, and restart FreeCAD.
- Note that InitGui.py (and the rest of .py files) should end up directly under Mod\Lattice2 (not under nested directory like Mod\Lattice2\Lattice2).
After you install the workbench, it should appear at the bottom of list of workbench selector in FreeCAD.
Tutorials
- Tutorials: Gallery
- Basic Tutorial
- Lattice2 in PartDesign
- Making a Cogset
- Feature Patterns in Lattice2 Workbench by \@sliptonic
Links to Lattice2 workbench
- Lattice2 Wiki: https://github.com/DeepSOIC/Lattice2/wiki
- FreeCAD Wiki: https://www.freecadweb.org/wiki/Lattice2_Workbench
- FreeCAD Forum: Lattice workbench - v2.0 is becoming stable
- Gallery: https://github.com/DeepSOIC/Lattice2/wiki/Gallery
- Report bugs: Please report bugs at https://github.com/DeepSOIC/Lattice2/issues
Other useful links
- Lattice aka Lattice1 Workbench (obsolete)
- External Workbenches: List of FreeCAD workbenches.
- Macros recipes
- FreeCAD Community Portal
⏵ documentation index > Addons > External Workbenches > Lattice2 Workbench
This page is retrieved from https://github.com/FreeCAD/FreeCAD-documentation/blob/main/wiki/Lattice2_Workbench.md