mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 19:54:07 +00:00
You can now export Cost Schedules as CSV, ODS, XSLX with BlenderBIM or using the cli app
This commit is contained in:
+42
-3
@@ -1,18 +1,57 @@
|
||||
# ifc5d
|
||||
|
||||
## Description
|
||||
|
||||
Ifc5D is a collection of utilities of manipulating cost-related data to and from
|
||||
formats, reports, and optimisation engines.
|
||||
|
||||
Currently supported:
|
||||
|
||||
- CSV to IFC
|
||||
- IFC to XLSX
|
||||
- IFC to CSV
|
||||
- IFC to ODS
|
||||
|
||||
|
||||
Planned (would you like to contribute? Please reach out!):
|
||||
|
||||
- IFC to CSV
|
||||
|
||||
- IFC to PDF
|
||||
- IFC to ODS
|
||||
- IFC to XLSX
|
||||
- ODS to CSV
|
||||
- XLSX to CSV
|
||||
- IFC to Graph
|
||||
|
||||
## Usage CSV to IFC
|
||||
|
||||
## Usage IFC to CSV, ODS, XSLS
|
||||
|
||||
### CLI app for converting IFC files to CSV, ODS or XLSX format.
|
||||
|
||||
Usage:
|
||||
python ifc5Dspreadsheet.py input_file output_file [-l log_file] [-f format_type]
|
||||
|
||||
Arguments:
|
||||
input_file (str): The path to the input IFC file to process.
|
||||
output_file (str): The output directory for CSV or filename for other formats.
|
||||
|
||||
Options:
|
||||
-l, --log log_file (str): The path to the file where errors should be logged. Default is process.log.
|
||||
-f, --format format_type (str): The output format to export in (csv/ods/xlsx). Default is csv.
|
||||
|
||||
Examples:
|
||||
python ifc5Dspreadsheet.py "C:\Users\Username\Desktop\test_cost.ifc" rev_01_schedule -l error.log -f ods
|
||||
python ifc5Dspreadsheet.py "C:\Users\Dev-Machine\Desktop\test_cost.ifc" "C:\Users\Dev-Machine\Desktop" -l error.log -f csv
|
||||
### Scripting:
|
||||
|
||||
Example for ODS exports:
|
||||
"""
|
||||
import ifcopenshell
|
||||
from ifc5d.ifc5Dspreadsheet import Ifc5DOdsWriter
|
||||
|
||||
file = "path_to_file/file.ifc"
|
||||
|
||||
path = "directory/cost_schedule"
|
||||
writer = Ifc5DOdsWriter(file=file, output=path)
|
||||
writer.write()
|
||||
|
||||
"""
|
||||
Reference in New Issue
Block a user