Hallo,
I’m looking to create a Dynamo form that allows me to import BCF files into Revit and perform various operations based on the BCF data. I’ve explored the BCF Manager plugin for Revit but found it insufficient for my needs.
I need to get the IFC-GUID and a description from the BCF and write to the element in Revit, for me also would work if I able to export this information to excel.
Any suggestions, code snippets, or recommended workflows for accomplishing these tasks would be highly appreciated. Thank you for your assistance!
import xml.etree.ElementTree as ET
def extract_topic_comments(xml_file):
tree = ET.parse(xml_file)
root = tree.getroot()
topic_comments = {}
for topic in root.iter('Topic'):
guid = topic.get('Guid')
comment_element = topic.find('Comment')
comment = comment_element.text if comment_element is not None else None
topic_comments[guid] = comment
return topic_comments
OUT = extract_topic_comments(IN[0])
Thanks for the answer
not for my purpose
The original BCF is a BCFzip file which contains the BCF. I need to extract the IFC Guid from the viewpoint and the description from the markup.
Any Ideas?