Renamed BitTemplate to BitShape for clarity

This commit is contained in:
Markus Lampert
2019-11-01 14:04:34 -07:00
parent fee1ddf73a
commit db1f97b16e
21 changed files with 73 additions and 73 deletions

View File

@@ -255,11 +255,11 @@ class ToolBitSelector(object):
class ToolBitGuiFactory(PathToolBit.ToolBitFactory):
def Create(self, name='ToolBit', templateFile=None):
def Create(self, name='ToolBit', shapeFile=None):
'''Create(name = 'ToolBit') ... creates a new tool bit.
It is assumed the tool will be edited immediately so the internal bit body is still attached.'''
FreeCAD.ActiveDocument.openTransaction(translate('PathToolBit', 'Create ToolBit'))
tool = PathToolBit.ToolBitFactory.Create(self, name, templateFile)
tool = PathToolBit.ToolBitFactory.Create(self, name, shapeFile)
PathIconViewProvider.Attach(tool.ViewObject, name)
FreeCAD.ActiveDocument.commitTransaction()
return tool