mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
Type representation maps are now shown in the IFC Representations UI panel
This commit is contained in:
@@ -17,9 +17,12 @@ class Data:
|
|||||||
return
|
return
|
||||||
cls.products[product_id] = []
|
cls.products[product_id] = []
|
||||||
product = file.by_id(product_id)
|
product = file.by_id(product_id)
|
||||||
if not hasattr(product, "Representation") or not product.Representation:
|
representations = []
|
||||||
return
|
if product.is_a("IfcProduct"):
|
||||||
for representation in product.Representation.Representations:
|
representations = product.Representation.Representations
|
||||||
|
elif product.is_a("IfcTypeProduct"):
|
||||||
|
representations = [rm.MappedRepresentation for rm in product.RepresentationMaps]
|
||||||
|
for representation in representations:
|
||||||
c = representation.ContextOfItems
|
c = representation.ContextOfItems
|
||||||
rep_id = int(representation.id())
|
rep_id = int(representation.id())
|
||||||
cls.representations[rep_id] = {
|
cls.representations[rep_id] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user