Draft: fixed #1664 again

This commit is contained in:
Yorik van Havre
2015-01-04 20:38:47 -02:00
parent 9ff69dd6dc
commit 37ebcd4e28
2 changed files with 2 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ def makeFloor(objectslist=None,baseobj=None,name=translate("Arch","Floor")):
'''makeFloor(objectslist): creates a floor including the
objects from the given list.'''
obj = FreeCAD.ActiveDocument.addObject("App::DocumentObjectGroupPython",name)
obj.Label = name
_Floor(obj)
if FreeCAD.GuiUp:
_ViewProviderFloor(obj.ViewObject)