#2224 You can now specify element offset / limit ranges when loading models

This commit is contained in:
Dion Moult
2022-06-08 11:53:58 +10:00
parent d0f38bc919
commit a1ed78e755
4 changed files with 24 additions and 9 deletions
@@ -495,6 +495,7 @@ class LoadProject(bpy.types.Operator, IFCFileSelector):
return {"FINISHED"}
context.scene.BIMProperties.ifc_file = self.filepath
context.scene.BIMProjectProperties.is_loading = True
context.scene.BIMProjectProperties.total_elements = len(tool.Ifc.get().by_type("IfcElement"))
if not self.is_advanced:
bpy.ops.bim.load_project_elements()
return {"FINISHED"}