This is a FreeCAD implementation for writing your SolidMonty CAD scripts. I hope you will find it useful.
Writing scripts in FreeCAD could be a little bit messy. Thankfully, SolidMonty make things simpler, more human readable and natural. Nevertheless, if you're into scripting in FreeCAD there are others alternatives like cadquery that may help.
- Install FreeCAD.
- Download this folder into your computer.
- Now add that directory to your PYTHONPATH.
That's it boys and girls. Now you can start FreeCAD and run your scripts by importing the library.
from SolidMonty_FreeCAD import *
# Your code here
If you are interested in writing scripts in a diferent editor and then export the results (STL, IGES, STEP), you can execute the following command in your terminal:
FreeCADCmd.exe your_directory/your_script.py
Where:
FreeCADCmd.exe
is a executable that you have to find in the FreeCAD folder. You have to add that directory to your system path.your_script.py
is your script.your_directory
is the directory where is placedyour_script.py
. If you're running the script directly in the current working directory it is not neceary to write it.