New feature to validate IFC files against specification

This commit is contained in:
Dion Moult
2020-03-30 12:47:14 +11:00
parent df81490f86
commit c4cd6ef710
5 changed files with 27 additions and 2 deletions
@@ -8,6 +8,7 @@ import mathutils
import multiprocessing
from .helper import SIUnitHelper
from . import schema
from . import ifc
class MaterialCreator():
def __init__(self, ifc_import_settings):
@@ -477,9 +478,11 @@ class IfcImporter():
def load_file(self):
self.ifc_import_settings.logger.info('loading file {}'.format(self.ifc_import_settings.input_file))
self.file = ifcopenshell.open(self.ifc_import_settings.input_file)
ifc.IfcStore.file = self.file
def set_ifc_file(self):
bpy.context.scene.BIMProperties.ifc_file = self.ifc_import_settings.input_file
ifc.IfcStore.path = 'self.ifc_import_settings.input_file'
def calculate_unit_scale(self):
units = self.file.by_type('IfcUnitAssignment')[0]