FreeCAD Setup

Contents - Index

FreeCAD Setup
If not already present, install FreeCAD on the pc.
Open the CodeSharkFCs application
Select the FreeCAD menu item
Select FreeCAD Settings from the sub menu.
CodeSharkFCs needs to know the path for the PythonHome environment variable (path to the Python directory, ususally ..\FreeCad\bin).
Click in the PythonHome Env Value text box to open the PythonHome path selection dialog, then select the correct directory and click the Select Folder button.
CodeSharkFCs needs to know the path to the FreeCad Mod (Modules) directory, ususally ..\FreeCad\Mod).
Click in the FreeCad Mod Path text box to open the FreeCad Mod path selection dialog, then select the correct directory and click the Select Folder button.
CodeSharkFCs needs to know the version of Python FreeCAD is using, select from the drop down list. Note this list is dependant on the Python versions know to Python4Delphi, if the version is not in the drop down list, CodeSharkFCs will need to be built with a new version of Python4Delphi.
CodeSharkFCs communicates with FreeCad via a set of Python scripts. The default scripts are hardcoded into the CodeSharkFCs module. However the code allows for custom scripts to be implemented via the "Custom xxx Script" check boxes. On the first execution of CodeSharkFCs the following scripts are written to the users %LOCALAPPDATA%\CodeSharkFCs directory:
Custom Strart Script - StartupScript.py
Custom View Panel Script - PanelViewScript.py
Custom Selection Observer Script - ObserverScript.py
Custom Shutdown Script - ShutdownScript.py
If the check box is marked CodeSharkFCs will use the the associated script to communicate with FreeCAD.
Home