mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fixes problems with referents
This commit is contained in:
@@ -162,3 +162,11 @@ def print_composite_curve_deep(curve):
|
||||
print(" " * 4, segment.Placement)
|
||||
print(" " * 4, segment.Placement.Location)
|
||||
print(" " * 4, segment.Placement.RefDirection)
|
||||
|
||||
def print_positioned_products(file: ifcopenshell.file):
|
||||
referents = file.by_type("IfcReferent")
|
||||
for referent in referents:
|
||||
print(referent)
|
||||
for rel in referent.Positions:
|
||||
for product in rel.RelatedProducts:
|
||||
print(" " * 2,product)
|
||||
Reference in New Issue
Block a user