From 11e187fc7699457e3ce57665081741ef0e90e74a Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Sun, 1 Sep 2019 10:14:31 +1000 Subject: [PATCH] We don't need this ifc_schema class, it seems --- export.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/export.py b/export.py index a1c32d0b96..2799bd11ca 100644 --- a/export.py +++ b/export.py @@ -1,7 +1,6 @@ import ifcopenshell import bpy - class IfcParser(): def __init__(self): self.spatial_structure_elements = [] @@ -89,12 +88,11 @@ class IfcParser(): return class_name in ['IfcProject', 'IfcProjectLibrary'] # TODO: unhardcode class IfcExporter(): - def __init__(self, ifc_parser, ifc_schema): + def __init__(self, ifc_parser): self.template_file = '/home/dion/Projects/blender-bim-ifc/template.ifc' self.output_file = '/home/dion/Projects/blender-bim-ifc/output.ifc' self.data_dir = '/home/dion/Projects/blender-bim-ifc/data/' self.ifc_parser = ifc_parser - self.ifc_schema = ifc_schema def export(self): self.file = ifcopenshell.open(self.template_file) @@ -198,6 +196,5 @@ class IfcExporter(): self.ifc_parser.spatial_structure_elements[relating_structure]['ifc']) ifc_parser = IfcParser() -ifc_schema = IfcSchema() -ifc_exporter = IfcExporter(ifc_parser, ifc_schema) +ifc_exporter = IfcExporter(ifc_parser) ifc_exporter.export()