BIM: allow deleting locked IFC properties when needed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user