mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-20 20:22:09 +00:00
ifccsv delimiter
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user