# To install the python package cnc25d, run the following command: # > sudo pip install Cnc25D # or # > sudo pip install Cnc25D -U ################################################################ # header for Python / FreeCAD compatibility ################################################################ try: # when working with an installed Cnc25D package from cnc25d import cnc25d_api except: # when working on the source files import importing_cnc25d # give access to the cnc25d package from cnc25d import cnc25d_api cnc25d_api.importing_freecad() #print("FreeCAD.Version:", FreeCAD.Version()) ################################################################ # import ################################################################ # import math # from cnc25d import cnc25d_design # import Part
this piece of code is an example of how to use the parametric design low_torque_transmission You can also use this file as a FreeCAD macro from the GUI You can also copy-paste this code in your own design files If you don't know which value to set to a constraint-parameter, just comment it. Default value is used, if you don't set a constraint explicitly. """ ################################################################ # header for Python / FreeCAD compatibility ################################################################ try: # when working with an installed Cnc25D package from cnc25d import cnc25d_api except: # when working on the source files from . import importing_cnc25d # give access to the cnc25d package from cnc25d import cnc25d_api cnc25d_api.importing_freecad() #print("FreeCAD.Version:", FreeCAD.Version()) ################################################################ # import ################################################################ # import math # from cnc25d import cnc25d_design # import Part