Skip to content
Ilya V. Portnov edited this page Aug 12, 2022 · 10 revisions

Install FreeCAD py3lib

You have to use FreeCAD of version 0.18 (0.19 could not work (0.20 it alpha)).

See also: FreeCAD's wiki page about Sverchok/FreeCAD integration.

Linux:

  1. Install FreeCAD (or just it's libraries, that will be enough):

    $ sudo apt install libfreecad-python3-0.18

Note that in Ubuntu there is a bug in FreeCAD package; so if you are having error messages like libnglib.so: no such file or directory, then to work around this bug, you have to do the following:

$ sudo apt install libnglib-6.2.1804    
$ sudo echo '/usr/lib/x86_64-linux-gnu/netgen' >> /etc/ld.so.conf.d/x86_64-linux-gnu.conf  
$ sudo ldconfig  
  1. In Sverchok preferences dialog, in the FreeCAD python path field, enter /usr/lib/freecad-python3/lib/ and press the Set Path button.
  2. Restart Blender.

Windows:

For Blender 2.93 to 3.1.0 :

  1. Download

    For Blender 2.93 download and install/unzip Freecad with python 3.7.3 libs pylib 3.7
    Or for Blender 3.1.0 download python 3.9 libs pylib 3.9
    Or for Blender 3.1.0 download and install/unzip FreeCAD with python 3.9.12 libs pylib 3.9.12

  2. In Sverchok preferences dialog, in the FreeCAD python path field, enter freecad-python3-lib path that ends with ...\bin and press the Set Path button.

  3. Restart Blender.

For Blender 3.2.0 :

  1. Download miniconda
  2. Open Anaconda Prompt (miniconda3)
  3. Navigate within the prompt to where you want your FreeCad library to be installed
  4. Run conda create -p fc_env freecad python=3.10 --copy -y -c freecad/label/dev -c conda-forge
  5. Within Blender, in Sverchok add-on settings, Extra Nodes tab, FreeCAD python path field, enter your_path\fc_env\Library\bin, where your_path is the path to where you executed step 4.
  6. Press the Set Path button next to the field
  7. Restart Blender

MacOS

The current version of FreeCAD has a different version of Python (3.8) so you must use conda-forge to retrieve a version compiled against Python 3.7.

  1. Follow the recipe at FreeCAD Web
  2. While it is activated type which freecad and use this path for the sverchok FreeCAD python path in Preferences. Don't forget to press Set Path button.
  3. Restart Blender.
Clone this wiki locally