This commit is contained in:
lorenz_l
2016-04-14 10:16:46 +02:00
4 changed files with 27 additions and 12 deletions

View File

@@ -26,13 +26,13 @@ import gearfunc
try:
from FreeCADGui import Workbench
except ImportError as e:
App.Console.Warning("you are using the GearWorkbench with an old version of FreeCAD (<0.16)")
App.Console.Warning("the class Workbench is loaded, allthough not imported: magic")
App.Console.PrintWarning("you are using the GearWorkbench with an old version of FreeCAD (<0.16)")
App.Console.PrintWarning("the class Workbench is loaded, allthough not imported: magic")
class gearWorkbench(Workbench):
"""glider workbench"""
MenuText = "gear"
ToolTip = "gear workbench"
MenuText = "Gear"
ToolTip = "Gear Workbench"
Icon = "gearworkbench.svg"
def GetClassName(self):

View File

@@ -1,11 +1,26 @@
a gearmodule for freecad
A gear module for FreeCAD
---------------------------
* install:
* use only with FreeCAD version > 0.16
Use only with FreeCAD version > 0.16
* install on Linux:
* git clone https://github.com/looooo/FCGear.git
* link or copy the folder into /freecad/Mod (sudo ln -s (path_to_FCGear) (path_to_freecad)/Mod
* install on Windows (7/8/8.1/10):
* download ZIP-archive by clicking on button in top right corner
* go to FreeCAD-Macro-Folder (inside FreeCAD, choose "Edit > Preferences > General > Macro to see Macro Path)
* if you haven't changed the standard settings, it should be "C:\Users\Your_Windows_User_Name\AppData\Roaming\FreeCAD"
* \appdata is a HIDDEN folder, so you may have to change the settings of the file explorer to see it
* create a sub-folder called "FCGear"
* make sure to copy files and folders EXACTLY as shown above to the just created sub-folder
* restart FreeCAD and the workbench should appear in the pull-down menu
* within FreeCAD you can choose "Tools > Customize > Workbenches" to enable/disable workbenches
* as ALTERNATIVE method you can use FreeCAD-Addon-Installer macro from https://github.com/FreeCAD/FreeCAD-addons
* install on MAC (not tested):
* Copy or unzip the FCgear-folder to the directory FreeCAD.app/Contents/Mod where FreeCAD.app is the folder where FreeCAD is installed.
* as ALTERNATIVE method you can use FreeCAD-Addon-Installer macro from https://github.com/FreeCAD/FreeCAD-addons
* create a gear:
* open freecad

View File

@@ -2,7 +2,7 @@
# Resource object code
#
# Created: So. Jan 31 09:02:49 2016
# Created: Di. Feb 2 13:22:30 2016
# by: The Resource Compiler for PySide (Qt v4.8.4)
#
# WARNING! All changes made in this file will be lost!

View File

@@ -39,7 +39,7 @@ class CreateInvoluteGear():
return True
def Activated(self):
a = FreeCAD.ActiveDocument.addObject("Part::FeaturePython", "involute_gear")
a = FreeCAD.ActiveDocument.addObject("Part::FeaturePython", "InvoluteGear")
involute_gear(a)
ViewProviderGear(a.ViewObject)
FreeCAD.ActiveDocument.recompute()
@@ -60,7 +60,7 @@ class CreateInvoluteRack():
return True
def Activated(self):
a = FreeCAD.ActiveDocument.addObject("Part::FeaturePython", "involute_rack")
a = FreeCAD.ActiveDocument.addObject("Part::FeaturePython", "InvoluteRack")
involute_gear_rack(a)
ViewProviderGear(a.ViewObject)
FreeCAD.ActiveDocument.recompute()
@@ -81,7 +81,7 @@ class CreateCycloideGear():
return True
def Activated(self):
a = FreeCAD.ActiveDocument.addObject("Part::FeaturePython", "cycloide_gear")
a = FreeCAD.ActiveDocument.addObject("Part::FeaturePython", "CycloideGear")
cycloide_gear(a)
ViewProviderGear(a.ViewObject)
FreeCAD.ActiveDocument.recompute()
@@ -101,7 +101,7 @@ class CreateBevelGear():
return True
def Activated(self):
a = FreeCAD.ActiveDocument.addObject("Part::FeaturePython", "bevel_gear")
a = FreeCAD.ActiveDocument.addObject("Part::FeaturePython", "BevelGear")
bevel_gear(a)
ViewProviderGear(a.ViewObject)
FreeCAD.ActiveDocument.recompute()