mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-03 13:28:19 +00:00
New feature to validate IFC files against specification
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user