FreeCAD workbench about arrays of all sorts and kinds, and local coordinate systems
Go to file
2019-09-20 16:53:51 +03:00
ExampleProjects Add example: bike chain 2018-08-14 17:49:54 +03:00
fonts ShapeString: bundle a few OFL-licensed fonts for easy playaround 2015-11-01 20:00:57 +03:00
lattice2Base Autosize: imperial unit support 2018-12-07 14:51:30 +03:00
PyResources icon 2018-06-14 01:39:28 +03:00
shapes Lattice: cooler orientation marker 2015-11-01 23:19:24 +03:00
.gitignore .gitignore *.FCStd1 backup FreeCAD files 2015-09-15 00:23:46 +03:00
CompoundFilter2.py active body awareness 2018-06-14 01:39:28 +03:00
copying.lib Add licence (LGPL) 2015-10-17 20:35:16 +03:00
FuseCompound2.py active body awareness 2018-06-14 01:39:28 +03:00
InitGui.py New tool: View from placement 2019-09-20 16:53:51 +03:00
lattice2_rc.py icon 2018-06-14 01:39:28 +03:00
Lattice2.py AttachablePlacement: create base class 2018-08-06 15:38:24 +03:00
Lattice2ArrayFeatures.py PolarArray: new implementation 2018-08-06 15:38:24 +03:00
lattice2ArrayFilter.py Misc. typo fixes 2019-05-21 12:55:38 +03:00
lattice2ArrayFromShape.py FreeCADCmd: fix imports 2018-05-14 22:37:07 +03:00
lattice2AttachablePlacement.py fix #31 error when closing transform on polar array 2019-07-12 20:10:42 +03:00
lattice2BaseFeature.py Misc. typo fixes 2019-05-21 12:55:38 +03:00
lattice2BoundBox.py Misc. typo fixes 2019-05-21 12:55:38 +03:00
Lattice2CodeModules.py New feature pack: Subsequencing and TopoSeries 2017-01-15 22:39:17 +03:00
lattice2Common.py Utils: print traceback for pop-up error messages 2018-08-06 15:36:57 +03:00
lattice2Compatibility.py AttachablePlacement: create base class 2018-08-06 15:38:24 +03:00
lattice2CompoundExplorer.py Py3: fix syntax errors 2017-11-21 18:53:56 +03:00
Lattice2CompoundFeatures.py New feature pack: Subsequencing and TopoSeries 2017-01-15 22:39:17 +03:00
lattice2Downgrade.py active body awareness 2018-06-14 01:39:28 +03:00
lattice2Dummy.py V2: renaming .py files 2015-11-26 23:26:43 +03:00
lattice2Executer.py FreeCADCmd: fix imports 2018-05-14 22:37:07 +03:00
lattice2ExposeLinkSub.py FreeCADCmd: fix imports 2018-05-14 22:37:07 +03:00
lattice2GeomUtils.py Misc. typo fixes 2019-05-21 12:55:38 +03:00
Lattice2GuiTools.py New tool: View from placement 2019-09-20 16:53:51 +03:00
lattice2HelpCommands.py FreeCADCmd: fix workbench activation in GUI mode 2018-05-14 22:49:20 +03:00
lattice2InjectedToolbars.py add partdesign toolbar 2018-06-14 01:39:28 +03:00
lattice2Inspect.py FreeCADCmd: fix imports 2018-05-14 22:37:07 +03:00
lattice2InterpolatorUtil.py V2: renaming .py files 2015-11-26 23:26:43 +03:00
lattice2Invert.py FreeCADCmd: fix imports 2018-05-14 22:37:07 +03:00
lattice2JoinArrays.py FreeCADCmd: fix imports 2018-05-14 22:37:07 +03:00
lattice2LinearArray.py Use Autosize in single placement, attachable placement, linear and polar arrays, shapestring 2018-12-02 01:29:25 +03:00
lattice2MakeCompound.py active body awareness 2018-06-14 01:39:28 +03:00
lattice2Markers.py Py3: more fix "err has no attribute message" 2017-11-23 11:58:18 +03:00
lattice2Mirror.py active body awareness 2018-06-14 01:39:28 +03:00
lattice2ParaSeries.py Misc. typo fixes 2019-05-21 12:55:38 +03:00
Lattice2PartDesignFeatures.py add partdesign toolbar 2018-06-14 01:39:28 +03:00
lattice2PDPattern.py Misc. typo fixes 2019-05-21 12:55:38 +03:00
lattice2PDPatternCommand.py add partdesign toolbar 2018-06-14 01:39:28 +03:00
lattice2Placement.py Use Autosize in single placement, attachable placement, linear and polar arrays, shapestring 2018-12-02 01:29:25 +03:00
lattice2PolarArray.py FreeCADCmd: fix imports 2018-05-14 22:37:07 +03:00
lattice2PolarArray2.py Use Autosize in single placement, attachable placement, linear and polar arrays, shapestring 2018-12-02 01:29:25 +03:00
lattice2PopulateChildren.py Misc. typo fixes 2019-05-21 12:55:38 +03:00
lattice2PopulateCopies.py active body awareness 2018-06-14 01:39:28 +03:00
lattice2ProjectArray.py Misc. typo fixes 2019-05-21 12:55:38 +03:00
lattice2RecomputeLocker.py Fix #29 Lattice2 not working in FC v0.18.1 2019-05-20 17:43:38 +03:00
lattice2Resample.py Misc. typo fixes 2019-05-21 12:55:38 +03:00
lattice2SeriesGroup.py active body awareness 2018-06-14 01:39:28 +03:00
lattice2ShapeCopy.py New feature: PartDesign Pattern! 2018-06-14 01:39:03 +03:00
lattice2ShapeInfoFeature.py Misc. typo fixes 2019-05-21 12:55:38 +03:00
lattice2ShapeString.py Misc. typo fixes 2019-05-21 12:55:38 +03:00
lattice2Slice.py active body awareness 2018-06-14 01:39:28 +03:00
lattice2SubLink.py Misc. typo fixes 2019-05-21 12:55:38 +03:00
lattice2Subsequencer.py Misc. typo fixes 2019-05-21 12:55:38 +03:00
lattice2SubstituteObject.py Misc. typo fixes 2019-05-21 12:55:38 +03:00
lattice2TopoSeries.py FreeCADCmd: fix imports 2018-05-14 22:37:07 +03:00
lattice2Utils.py PolarArray: new implementation 2018-08-06 15:38:24 +03:00
lattice2ValueSeriesGenerator.py ValueSeriesGenerator: fix Mirrored not working when Step is negative 2018-01-18 02:32:54 +03:00
lattice2ViewFromPlacement.py New tool: View from placement 2019-09-20 16:53:51 +03:00
readme.md Update readme.md 2019-08-28 04:13:04 +03:00

What is Lattice2 workbench

Lattice Workbench is a plug-in module (workbench) for FreeCAD.

The workbench purpose is 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.

Getting started

Follow through Basic Tutorial to get the basic concept of Lattice2.

Highlights

Lattice2-FreeCAD-wormcutter

Lattice2-FreeCAD-placement-interpolator

Take a look at other examples in the Gallery of screenshots.

Let's have a glance over the most important capabilities that the workbench adds to FreeCAD:

  • Re-use arrays as many times as you need. Unlike Draft array, which directly generates the array of shapes, lattice array tools generate arrays of placements. These can later be populated with shapes, as many times as necessary, without having to set up another array.

  • Extends PartDesign workflow, offering a way to reuse a sequence of features in arbitrary bodies and places.

  • Elements of array can be different. Unlike Draft Arrays, which always generate a set of equal shapes, Lattice arrays can be used to arrange a set of different shapes. Pack the shapes to be arranged into a Compound, and use Lattice Populate with children feature to arrange them.

  • Arrays of placements can be combined, inverted, generated from existing shape arrangements, made from individual placements, projected onto shapes, filtered, etc. This allows to produce complex arrangements without scripting.

  • single placements can be used for primitive assembling of parts.

  • linear arrays and polar arrays can have their axes linked to edges of shapes

  • ParaSeries feature allows to generate a series of parts with some parameter varied over a list of values.

Why Lattice2, not just Lattice?

Lattice2 was created at the moment when breaking changes needed to be made to Lattice, but there were a few things made with Lattice. So, it was decided to keep the workbench in that time's state indefinitely as version 1.0, and start development of a new version.

The goal was to allow editing old projects made with Lattice v1, by having both versions installed at the same time. So a new repository was started, and all the files were renamed to start with 'lattice2' or otherwise differ from those of Lattice v1.

Lattice3 (if ever) will be a standalone repository, for the same reasons.

Download/install

repository: https://github.com/DeepSOIC/Lattice2

Lattice2 WB requires FreeCAD no less than v0.16.5155. PartDesign tools require v0.17+. Both Py2/Qt4 and Py3/Qt5 builds are supported.

The workbench is OS independent, it should work on any system FreeCAD can be run on. If you find that it doesn't - that is a bug. Please make an issue.

Lattice2 is written in FreeCAD's Python, and must be run from within FreeCAD. It requires no compilation, and can be installed by copying the repository to a special location.

Automated installation:

  • The recommended way of installing the workbench is to use FreeCAD's built-in addon manager (Tools->Addon manager).
  • Lattice2 workbench is packaged to Launchpad in the Ubuntu FreeCAD Community PPA (thanks to @abdullahtahiriyo).
  • Lattice2 can be installed via @microelly's Plugin Loader

Manual install:

  1. Scroll to the top of the page, and click 'clone or download' -> 'download zip' button.

  2. 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).

On windows:
%AppData%\FreeCAD\Mod, for all installs of FreeCAD
C:\Program Files\FreeCAD\Mod (typ), for individual install of FreeCAD
On Linux:
/home/userxyz/.FreeCAD/Mod/
MacOS:
???

After you install the workbench, it should appear at the bottom of list of workbench selector in FreeCAD.

If you want to install the workbench for development, git clone the repository wherever you like, and make a symlink in where FreeCAD can pick up add-ons

License

Lattice workbench is licenced under LGPL V2, just like FreeCAD. For more info, see copying.lib file in the repository.

Getting Help

Documentation: see Lattice2 wiki on Github. As the word "wiki" suggests, you can help by editing the documentation.

If you need help on something specific, you can ask a question on FreeCAD forum (there is no Lattice forum yet...). You can also ask me directly. If you post to the forum, please add this to your post so that I get a notification: [quote=DeepSOIC user_id=3888]Ding![/quote]

If you have found a bug, report it here, in Github's issue tracker for Lattice2. You can also post ideas for new features there, as well as plain questions.

If you have fixed a bug, or implemented a new feature you think suits the workbench, or whatever - feel free to make a pull-request here on github.

Status

The workbench is stable. I will take care to not make breaking changes, and some new functionality may keep coming.

If you make your FreeCAD project using Lattice2, all further changes to the project must be done with Lattice2 installed, even if you don't touch the relevant features. Otherwise, the parametric features in the project will lose their bound functionality, and will not recompute, even if you install Lattice2 later. This is the case for all add-ons in FreeCAD, not just Lattice2.