Freecad engine

Hi,
I was going to make an application to generate parametric CAD models and was going to use FreeCAD for that which has all features I need and much more. My only problem with it is the size of the whole thing. I don’t need any features for robotics, ships etc. Is there a bare bones FreeCAD engine I could use in my project, without having to go through all the code and compile the features I need?

Thanks in advance!

Welcome to FreeCAD.

Run Cmake GUI and just tick the modules you require, then compile. You can also run FreeCAD without a GUI, on the command line without having to recompile.

Yes, you can compile your own FreeCAD and switch off some modules. EDIT: Jim was faster :wink:
Actually, I think it might work to simply delete the modules you are not interested in from FreeCAD installation (Path/To/FreeCAD/Mod)

Thanks for the fast replies. Will just do that then :slight_smile:

Hello erlin, what OS are you on. A good portion of the size of FreeCAD is the dependencies. Some of which you won’t need if your not compiling all the modules.

Currently I only need it on Windows.

On windows the core FreeCAD is about 30MB the release package with dependencies is about 210MB. debug package is about double that. If you post which modules you need I maybe able to help pare it down.

So I would need things like draft, part, part design, assembly and then import/export.
Thanks again!

Do you need the gui? 0.16 Release version or development version from master?

No I will be using the console for everything. so a pretty basic setup. I am using the freecad-master

Maybe I should be using the release version, I suppose that is the most stable one.

OK give me a few hours to put something together.
Do you know http://www.dependencywalker.com/?
This can help to find the missing dependencies if we go to far.

Thank you for your time. I will be checking dependencywalker out.

https://github.com/sgrogan/FreeCAD/releases/tag/0.17-eng
Let me know if you have problems

Assembly is non-functional, which is why it’s not compiled by default.

Thank you for your help. I was trying to compile it myself but I am missing libraries. SWIG was easy to find but not so much luck with the rest.
Is there any guide I can follow to compile it? I am using visual studio compiler with cmake.
freecad.JPG

Instructions here: http://www.freecadweb.org/wiki/index.php?title=Compile_on_Windows_with_VS2013
It looks a little out of date. You should use the libpack from here: https://github.com/FreeCAD/FreeCAD/releases/tag/0.16
To compile master you need VS2013 or newer. We only provide a Libpack for VS2013 at this time.
If you have any questions don’t hesitate to ask.

I forgot to mention this, and I didn’t include it in the build I posted.

Awesome, I will give it a try :slight_smile:

So I am using now the new Freecad libraries and I get this error. Are these problems common?

CMake Error at C:/Program Files/CMake/share/cmake-3.6/Modules/FindBoost.cmake:1753 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.55.0

  Boost include path: C:/Users/Erlin
  Hysenbelliu/Desktop/FreeCADLibs_11.3_x64_VC12/include

  Could not find the following Boost libraries:

          boost_filesystem
          boost_program_options
          boost_regex
          boost_signals
          boost_system
          boost_thread

  Some (but not all) of the required Boost libraries were found.  You may
  need to install these additional Boost libraries.  Alternatively, set
  BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
  to the location of Boost.
Call Stack (most recent call first):
  CMakeLists.txt:595 (find_package)


CMake Error at CMakeLists.txt:599 (MESSAGE):
  ========================================

  boost not found, install the components:

   * filesystem
   * program_options
   * regex
   * signals
   * system
   * thread

  ========================================

problem.JPG

I am adding the other boost libraries, lets see if it works.