Draft + Arch: fixes when working without the GUI

This commit is contained in:
Yorik van Havre
2014-07-29 22:20:06 -03:00
parent 004f61d4e1
commit 1349b7cbf2
4 changed files with 18 additions and 14 deletions

View File

@@ -300,7 +300,8 @@ def makeStructure(baseobj=None,length=None,width=None,height=None,name=translate
obj.ViewObject.ShapeColor = ArchCommands.getDefaultColor("Structure")
if baseobj:
obj.Base = baseobj
obj.Base.ViewObject.hide()
if FreeCAD.GuiUp:
obj.Base.ViewObject.hide()
if width:
obj.Width = width
else: