mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
BCFv3 "get_comments" error #2212
Fix for Issue #2212 The method get_comments wasn't working as expected because on line 649, it was trying to access the element "Topics" instead of "Topic", based on the XSD "Topics" doesn't exist.
This commit is contained in:
committed by
Thomas Krijnen
parent
0a3e5f65fa
commit
24f307130c
@@ -646,7 +646,7 @@ class BcfXml:
|
||||
def get_comments(self, guid):
|
||||
comments = {}
|
||||
data = self._read_xml(os.path.join(guid, "markup.bcf"), "markup.xsd")
|
||||
if "Comments" not in data["Topics"]:
|
||||
if "Comments" not in data["Topic"]:
|
||||
return comments
|
||||
|
||||
for item in data["Topic"]["Comments"].get("Comment", []):
|
||||
|
||||
Reference in New Issue
Block a user