Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

freecad-legify-macros

Macros to generate 'plastic toy brick' models in FreeCAD

Why?

This is a learning exercise undertaken to master the following:

  • FreeCAD and concepts for parametric modelling: sketches, constraints, datum planes etc.
  • Python and scripting with FreeCAD
  • Detailed modelling of toy bricks

These all form the basis of a future planned project...

NOTE: This is no longer actively developed as I have learnt enough. The main lesson being that using Python scripts to create parametric models in FreeCAD is quite possibly insane!

Installation

Tested with FreeCAD version 0.18 and 0.19

MacOS

  1. Clone this repository:

    git clone https://github.com/vectronic/freecad-legify-macros.git

  2. Link the cloned folder and macro file into the FreeCAD macros directory:

    ln -s <local repository folder>/legify-brick.FCMacro <user preferences folder>/FreeCAD/Macro/
    ln -s <local repository folder>/Legify <user preferences folder>/FreeCAD/Macro/
    

Usage

  1. Create a new document
  2. Run the legify-brick.FCMacro
  3. Modify parameters as desired in the popup dialog
  4. Click OK
  5. Wait for for a lot of sketches, constraints, pads, pockets and fillets to be rendered
  6. Admire the resulting beauty

TODO

  • 0.25mm fillet on internal brick corners
  • Determine a replacement for internal ribs if side studs exist with holes
  • Determine a replacement for tube ribs if technic holes exist
  • Technic Axle Hole Rendering
  • Technic Pin Rendering
  • Support rib variation in modern 2x1 tile and 2x1 technic brick with 2 non-offset holes
  • Support modern tile where the bottom has a small outside pocket (and check if fillet is also required)

Screenshots

Parameters

Simple

Classic

Odd

Tree View

Sketch

Technical Drawing 1

Technical Drawing 2

Credit

Initial drawing and dimensions used as reference for this work was done by Nick Turo-Shields

About

Macros to generate 'plastic toy brick' models in FreeCAD

Topics

Resources

License

Packages

No packages published

Languages