|
|
# Install FreeCAD py3lib
|
|
|
|
|
|
You have to use FreeCAD of version 0.18 (0.19 could not work).
|
|
|
|
|
|
### 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](https://bugs.launchpad.net/ubuntu/+source/freecad/+bug/1866914) 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
|
|
|
|
|
|
2. In Sverchok preferences dialog, in the "FreeCAD python path" field, enter `/usr/lib/freecad-python3/lib/` and press the "Set Path" button.
|
|
|
3. Restart Blender.
|
|
|
|
|
|
### Windows:
|
|
|
|
|
|
Download and install [FreeCAD for Windows][17]
|
|
|
|
|
|
Add sverchok freecad-python3-lib path:
|
|
|
|
|
|
...\conda-0.18.3\bin
|
|
|
|
|
|
### 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.
|
|
|
|
|
|
Follow the [recipe at FreeCAD Web][20]
|
|
|
|
|
|
While it is ```activated``` type ```which freecad``` and use this path for the sverchok FreeCad lib path in Preferences. Don't forget to press 'Set Path' before closing the dialog. Restart Blender to take effect.
|
|
|
|
|
|
[17]: https://github.com/FreeCAD/FreeCAD/releases/download/0.19_pre/FreeCAD_0.19.23323-Win-Conda_vc14.x-x86_64.7z
|
|
|
[20]: https://forum.freecadweb.org/viewtopic.php?f=42&t=46144&start=10#p397181 |
|
|
\ Нет новой строки в конце файла |