ifccsv delimiter

This commit is contained in:
htlcnn
2020-12-28 10:18:55 +07:00
parent 510d756cc4
commit f277733ff5
4 changed files with 17 additions and 1 deletions
+2 -1
View File
@@ -109,6 +109,7 @@ class IfcCsv:
self.attributes = []
self.output = ""
self.selector = None
self.delimiter = ";"
def export(self, ifc_file, elements):
self.ifc_file = ifc_file
@@ -151,7 +152,7 @@ class IfcCsv:
def Import(self, ifc):
ifc_file = ifcopenshell.open(ifc)
with open(self.output, newline="", encoding="utf-8") as f:
reader = csv.reader(f)
reader = csv.reader(f, delimiter=self.delimiter)
headers = []
for row in reader:
if not headers: