mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 06:00:51 +00:00
Add element guId in BCF report
This commit is contained in:
@@ -342,7 +342,7 @@ class Bcf(Json):
|
|||||||
continue
|
continue
|
||||||
for failure in requirement["failed_entities"]:
|
for failure in requirement["failed_entities"]:
|
||||||
element = failure["element"]
|
element = failure["element"]
|
||||||
title = f"{element.id()}/{element.is_a()}/"
|
title = f"ID:[{element.id()}]/GUID:[{element.GlobalId}]/{element.is_a()}/"
|
||||||
title += getattr(element, "Name", None) or "Unnamed"
|
title += getattr(element, "Name", None) or "Unnamed"
|
||||||
title += " - " + failure.get("reason", "No reason")
|
title += " - " + failure.get("reason", "No reason")
|
||||||
description = f'{specification["name"]} - {requirement["description"]}'
|
description = f'{specification["name"]} - {requirement["description"]}'
|
||||||
|
|||||||
Reference in New Issue
Block a user