BIM: allow deleting locked IFC properties when needed

This commit is contained in:
Furgo
2025-05-21 11:21:53 +02:00
committed by Yorik van Havre
parent 78fcaaee34
commit 88d9be2e10

View File

@@ -345,6 +345,7 @@ def unlock_document():
props = ["IfcFilePath", "Modified", "Proxy", "Schema"]
props += [p for p in doc.PropertiesList if doc.getGroupOfProperty(p) == "IFC"]
for prop in props:
doc.setPropertyStatus(prop, "-LockDynamic")
doc.removeProperty(prop)
if project:
project.Modified = True