You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Mod/Arch/ArchComponent.py
+5-10Lines changed: 5 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -418,6 +418,10 @@ def setProperties(self,obj):
418
418
obj.addProperty("App::PropertyMap","IfcAttributes","Component",QT_TRANSLATE_NOOP("App::Property","Custom IFC properties and attributes"))
419
419
ifnot"Material"inpl:
420
420
obj.addProperty("App::PropertyLink","Material","Component",QT_TRANSLATE_NOOP("App::Property","A material for this object"))
421
+
if"BaseMaterial"inpl:
422
+
obj.Material=obj.BaseMaterial
423
+
obj.removeProperty("BaseMaterial")
424
+
FreeCAD.Console.PrintMessage("Upgrading "+obj.Label+" BaseMaterial property to Material\n")
421
425
ifnot"IfcRole"inpl:
422
426
obj.addProperty("App::PropertyEnumeration","IfcRole","Component",QT_TRANSLATE_NOOP("App::Property","The role of this object"))
423
427
obj.IfcRole=IfcRoles
@@ -426,7 +430,7 @@ def setProperties(self,obj):
426
430
obj.removeProperty("Role")
427
431
ifrinIfcRoles:
428
432
obj.IfcRole=r
429
-
FreeCAD.Console.PrintMessage("Upgrading "+obj.Label+" Role property to IfcRole\n")
433
+
FreeCAD.Console.PrintMessage("Upgrading "+obj.Label+" Role property to IfcRole\n")
430
434
ifnot"MoveWithHost"inpl:
431
435
obj.addProperty("App::PropertyBool","MoveWithHost","Component",QT_TRANSLATE_NOOP("App::Property","Specifies if this object must move together when its host is moved"))
0 commit comments