FreeCAD Programming

From Open Source Ecology
Jump to navigation Jump to search

Overview

edit

Programming New Workbenches in FreeCAD

One Paragraph Introduction by Ruslan Krenzler

FreeCAD Kernel

Links

Notes from G

  • Keeping 3D programming in mind - understanding what you are working with in 3D space
  • Label code and functions according to orientation
  • Adding toolbars is easy
  • To start a FreeCAD workbench...

Starting a Bench

  • Start by knowing what you need to do.
  • Understand a Command concept in FreeCAD
  • Understand geometry
  • Command is a thing that gets executed withing FreeCAD
  • Hard part was figuring out how to program the geometry
  • The more details in geometry
  • User selects an objects. Ex. .length.object gets you length
  • Navigating the code base - going through many files.
  • Using Docker to run unit tests. Docker creates an application environment, without installing FreeCAD or python modules
  • One Docker instance does the test runs. How long did it take to set up Docker.