mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 11:18:18 +00:00
We don't need this ifc_schema class, it seems
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
|
|
||||||
class IfcParser():
|
class IfcParser():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.spatial_structure_elements = []
|
self.spatial_structure_elements = []
|
||||||
@@ -89,12 +88,11 @@ class IfcParser():
|
|||||||
return class_name in ['IfcProject', 'IfcProjectLibrary'] # TODO: unhardcode
|
return class_name in ['IfcProject', 'IfcProjectLibrary'] # TODO: unhardcode
|
||||||
|
|
||||||
class IfcExporter():
|
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.template_file = '/home/dion/Projects/blender-bim-ifc/template.ifc'
|
||||||
self.output_file = '/home/dion/Projects/blender-bim-ifc/output.ifc'
|
self.output_file = '/home/dion/Projects/blender-bim-ifc/output.ifc'
|
||||||
self.data_dir = '/home/dion/Projects/blender-bim-ifc/data/'
|
self.data_dir = '/home/dion/Projects/blender-bim-ifc/data/'
|
||||||
self.ifc_parser = ifc_parser
|
self.ifc_parser = ifc_parser
|
||||||
self.ifc_schema = ifc_schema
|
|
||||||
|
|
||||||
def export(self):
|
def export(self):
|
||||||
self.file = ifcopenshell.open(self.template_file)
|
self.file = ifcopenshell.open(self.template_file)
|
||||||
@@ -198,6 +196,5 @@ class IfcExporter():
|
|||||||
self.ifc_parser.spatial_structure_elements[relating_structure]['ifc'])
|
self.ifc_parser.spatial_structure_elements[relating_structure]['ifc'])
|
||||||
|
|
||||||
ifc_parser = IfcParser()
|
ifc_parser = IfcParser()
|
||||||
ifc_schema = IfcSchema()
|
ifc_exporter = IfcExporter(ifc_parser)
|
||||||
ifc_exporter = IfcExporter(ifc_parser, ifc_schema)
|
|
||||||
ifc_exporter.export()
|
ifc_exporter.export()
|
||||||
|
|||||||
Reference in New Issue
Block a user