Arch: Extended role property to all Arch objects - fixes #1577

This commit is contained in:
Yorik van Havre
2014-09-21 15:12:06 -03:00
parent 4f5f9be38c
commit e08788eca9
7 changed files with 9 additions and 9 deletions

View File

@@ -27,6 +27,8 @@ __title__="FreeCAD Arch Space"
__author__ = "Yorik van Havre"
__url__ = "http://www.freecadweb.org"
Roles = ["Space"]
import FreeCAD,ArchComponent,ArchCommands,math,Draft
if FreeCAD.GuiUp:
import FreeCADGui
@@ -115,6 +117,7 @@ class _Space(ArchComponent.Component):
obj.addProperty("App::PropertyString", "FinishCeiling","Arch",translate("Arch","The finishing of the ceiling of this space"))
obj.addProperty("App::PropertyLinkList", "Group", "Arch",translate("Arch","Objects that are included inside this space, such as furniture"))
self.Type = "Space"
obj.Role = Roles
def execute(self,obj):
self.getShape(obj)