Hi All,
I have made a hook that exports out a data into csv, I would want to that CSV to be read inside Revit using output.print_table() as an interface but the formatting is messed up which i don’t know how to troubleshoot. Here’s my code:
output = script.get_output()
file_path = r'xxxxx\doc_open_log.csv'
with open(file_path, 'r') as csvfile:
data = csvfile.readlines()
output.center()
output.print_table(table_data=data,
title='Doc Open',
columns=['User', 'Computer', 'Model', 'Date', 'Time'],
formats=['', '', '', '', ''])
here’s the output:
if i just print it out without the table it turns out fine, but not on the table.
thanks in advance!
