All Projects → vectronic → freecad-legify-macros

vectronic / freecad-legify-macros

Licence: MIT license
Macros to generate 'plastic toy brick' models in FreeCAD

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to freecad-legify-macros

FreeCAD-manual
An experiment at reorganizing the contents of the FreeCAD wiki in an easier, friendlier book-like manner. The manual is now hosted on the FreeCAD wiki
Stars: ✭ 62 (+195.24%)
Mutual labels:  freecad
Lattice2
FreeCAD workbench about arrays of all sorts and kinds, and local coordinate systems
Stars: ✭ 40 (+90.48%)
Mutual labels:  freecad
FreeMVD WorkFlow
This project has been moved/forked to https://gitlab.com/osarch/FreeMVD_WorkFlow
Stars: ✭ 21 (+0%)
Mutual labels:  freecad
CurvedShapesWorkbench
FreeCAD Workbench for creating 3D shapes from 2D curves
Stars: ✭ 49 (+133.33%)
Mutual labels:  freecad
Freecad
This is the official source code of FreeCAD, a free and opensource multiplatform 3D parametric modeler. Issues are managed on our own bug tracker at https://www.freecadweb.org/tracker
Stars: ✭ 10,366 (+49261.9%)
Mutual labels:  freecad
CADCloud
CADCloud is a cloud based sharing infrastructure dedicates to CAD engineers. It allows users to share design files, browse them interactively through a simple web interface, and support native file format from popular open source tools.
Stars: ✭ 65 (+209.52%)
Mutual labels:  freecad
DynFreeCAD
Dynamo nodes for FreeCAD
Stars: ✭ 41 (+95.24%)
Mutual labels:  freecad
ThreadProfile
Create 2d thread profile for sweeping along helix in Part or Part Design workbenches
Stars: ✭ 15 (-28.57%)
Mutual labels:  freecad
flamingo
FreeCAD - flamingo workbench
Stars: ✭ 30 (+42.86%)
Mutual labels:  freecad
FreeCAD-Lithophane
FreeCAD Workbench to convert an image to a Lithophane for 3D Printing
Stars: ✭ 20 (-4.76%)
Mutual labels:  freecad
FreeCAD Conda
conda recipes for freecad and dependencies of freecad
Stars: ✭ 35 (+66.67%)
Mutual labels:  freecad
FC-Docker
Project to run FreeCAD in a cloud environment accessible via a web browser in a cloud environment.
Stars: ✭ 40 (+90.48%)
Mutual labels:  freecad
Rocket
FreeCAD Rocketry Workbench
Stars: ✭ 29 (+38.1%)
Mutual labels:  freecad
MarzWorkbench
FreeCAD Workbench for guitar design
Stars: ✭ 40 (+90.48%)
Mutual labels:  freecad
DesignSPHysics
Module for FreeCAD intended to use with DualSPHysics fluid simulator.
Stars: ✭ 65 (+209.52%)
Mutual labels:  freecad
flowwie-freecad
Flowwie's FreeCAD ressources for everybody to learn computer aided design with the Open Source CAD software FreeCAD.
Stars: ✭ 214 (+919.05%)
Mutual labels:  freecad
FenicsSolver
multiphysics FEM solver based on Fenics library
Stars: ✭ 52 (+147.62%)
Mutual labels:  freecad
tronxy-xy100
Working with an inexpensive 3D printer, Other names: STARTT (from imakr.com) or Anet A8
Stars: ✭ 22 (+4.76%)
Mutual labels:  freecad
RobotCreator
FreeCAD Workbench for URDF & SDF and Gazebo
Stars: ✭ 43 (+104.76%)
Mutual labels:  freecad

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.20 beta

MacOS

  1. Clone this repository:

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

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

    ln -s <absolute path of cloned repository>/Legify <absolute path of user preferences folder>/FreeCAD/Macro/
    ln -s <absolute path of cloned repository>/legify-brick.FCMacro <absolute path of user preferences folder>/FreeCAD/Macro/
    ln -s <absolute path of cloned repository>/legify-technic-pin.FCMacro <absolute path of user preferences folder>/FreeCAD/Macro/
    

NOTE: On MacOS the typical location for the user preferences folder is /Users/<username>/Library/Application\ Support.

Usage

Create a new brick model

  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 a lot of sketches, constraints, pads, pockets and fillets to be rendered...
  6. Admire the resulting beauty!

Add a technic pin to the face of a body

  1. Within the Part Design workbench, create a body.
  2. Create a datum point on an existing face representing the centre point of the base of the pin.
  3. Create a datum point extended 8mm from the normal to the face representing the centre point of the tip of the pin.
  4. Create a datum line supported by the base datum point and the tip datum point in that order.
  5. Select the body and select the datum line.
  6. Run the legify-technic-pin.FCMacro

TODO

Screenshots

Parameters

Simple

Classic

Odd

Tree View

Technic Pin

Sketch

Technical Drawing 1

Technical Drawing 2

Credit

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].