mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 10:51:13 +00:00
Accommmodate incorrect body representation contexts coming from Revit
This commit is contained in:
@@ -702,7 +702,9 @@ class IfcImporter:
|
|||||||
shape = iterator.get()
|
shape = iterator.get()
|
||||||
if shape:
|
if shape:
|
||||||
product = self.file.by_id(shape.guid)
|
product = self.file.by_id(shape.guid)
|
||||||
if shape.context != "Body" and shape.guid in IfcStore.guid_map:
|
# Facetation is to accommodate broken Revit files
|
||||||
|
# See https://forums.buildingsmart.org/t/suggestions-on-how-to-improve-clarity-of-representation-context-usage-in-documentation/3663/6?u=moult
|
||||||
|
if shape.context not in ["Body", "Facetation"] and shape.guid in IfcStore.guid_map:
|
||||||
# We only load a single context, and we prioritise the Body context. See #1290.
|
# We only load a single context, and we prioritise the Body context. See #1290.
|
||||||
pass
|
pass
|
||||||
elif product.is_a("IfcAnnotation") and product.ObjectType == "DRAWING":
|
elif product.is_a("IfcAnnotation") and product.ObjectType == "DRAWING":
|
||||||
|
|||||||
Reference in New Issue
Block a user