Sample Code Revit Batch Processor 1.1.11 documentation
Returns a list of tab names (work sheet names) in the Excel file.
file_path (str) – The path to the Excel file.
A result object with the result set to a list of tab names if successful, otherwise an error message.
Saves an Excel file as a CSV file.
file_path_excel (str) – The path to the Excel file.
file_path_csv (str) – The path to the CSV file.
tab_name (str) – The name of the tab ( work sheet ) in the Excel file to save as CSV. If None, the first tab is saved.
A result object with the result set to True if successful, otherwise an error message.
Reads the content of an Excel file into a 2D array.
Note: this function is rather slow, so use it with caution.
file_path (str) – The path to the Excel file.
excel_tab_name (str) – The name of the tab ( work sheet ) in the Excel file to read from. If None, the first tab is read.
A result object with the result set to a 2D array if successful, otherwise an error message.
Reads the content of an Excel file into a 2D array.
Note: this function is faster than read_excel_file It will save the excel file as a csv file first and then read its content.
file_path (str) – The path to the Excel file.
excel_tab_name (str) – The name of the tab ( work sheet ) in the Excel file to read from. If None, the first tab is read.
A result object with the result set to a 2D array if successful, otherwise an error message.