diff --git a/src/Mod/Arch/ArchComponent.py b/src/Mod/Arch/ArchComponent.py index 3fbb224e85..0b5b3393cb 100644 --- a/src/Mod/Arch/ArchComponent.py +++ b/src/Mod/Arch/ArchComponent.py @@ -255,6 +255,12 @@ class Component: if r in IfcRoles: obj.IfcRole = r FreeCAD.Console.PrintMessage("Upgrading "+obj.Label+" Role property to IfcRole\n") + if "IfcType" in pl: # for future backwards compatibility + r = obj.IfcType + obj.removeProperty("IfcType") + if r in IfcRoles: + obj.IfcRole = r + FreeCAD.Console.PrintMessage("Downgrading "+obj.Label+" IfcType property to IfcRole\n") if not "MoveWithHost" in pl: obj.addProperty("App::PropertyBool","MoveWithHost","Component",QT_TRANSLATE_NOOP("App::Property","Specifies if this object must move together when its host is moved")) obj.MoveWithHost = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/Arch").GetBool("MoveWithHost",False)