Module Creation

Creating a new application module in FreeCAD is rather simple. In the FreeCAD development tree exists the FreeCAD Build Tool (fcbt) that does the most important things for you. It is a Python script located under trunk/src/Tools/fcbt.py When your python interpreter is correctly installed you can execute the script from a command line with python fcbt.py It will display the following menu: FreeCAD Build Tool Usage: fcbt [command parameter] possible commands are: - DistSrc        (DS)   Build a source Distr. of the current source tree - DistBin        (DB)   Build a binary Distr. of the current source tree - DistSetup      (DI)   Build a Setup Distr. of the current source tree - DistSetup      (DUI)  Build a User Setup Distr. of the current source tree - DistAll        (DA)   Run all three above modules - BuildDoc       (BD)   Create the documentation (source docs) - NextBuildNumber (NBN) Increase the Build Number of this Version - CreateModule   (CM)   Insert a new FreeCAD Module in the module directory For help on the modules type: fcbt ? At the command prompt enter CM to start the creation of a module: Insert command: CM You are now asked to specify a name for your new module. Lets call it TestMod for example: Please enter a name for your application: TestMod After pressing enter fcbt starts copying all necessary files for your module in a new folder at trunk/src/Mod/TestMod/ Then all files are modified with your new module name. The only thing you need to do now is to add the two new projects "appTestMod" and "appTestModGui" to your workspace (on Windows) or to your makefile targets (unix). Thats it!