mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
You can now import structural curve members (again)
This commit is contained in:
@@ -705,12 +705,18 @@ class IfcImporter:
|
||||
print("Done creating geometry")
|
||||
|
||||
def create_annotation(self):
|
||||
self.create_curve_products(self.file.by_type("IfcAnnotation"))
|
||||
|
||||
def create_structural_elements(self):
|
||||
self.create_curve_products(self.file.by_type("IfcStructuralCurveMember"))
|
||||
|
||||
def create_curve_products(self, products):
|
||||
if self.ifc_import_settings.should_use_cpu_multiprocessing:
|
||||
iterator = ifcopenshell.geom.iterator(
|
||||
self.settings_2d,
|
||||
self.file,
|
||||
multiprocessing.cpu_count(),
|
||||
include=self.file.by_type("IfcAnnotation")
|
||||
include=products
|
||||
)
|
||||
else:
|
||||
iterator = ifcopenshell.geom.iterator(
|
||||
@@ -733,10 +739,6 @@ class IfcImporter:
|
||||
break
|
||||
print("Done creating geometry")
|
||||
|
||||
def create_structural_elements(self):
|
||||
for element in self.file.by_type("IfcStructuralCurveMember"):
|
||||
pass # TODO
|
||||
|
||||
def create_product(self, element, shape=None):
|
||||
if element is None:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user