This commit is contained in:
Andrej730
2024-11-06 10:53:21 +05:00
parent 36bd89bb40
commit 4e070545ae
4 changed files with 12 additions and 8 deletions
@@ -400,7 +400,11 @@ class SheetBuilder:
# If a perspective drawing, don't add scale to view title # If a perspective drawing, don't add scale to view title
try: try:
is_perspective = drawing.Representation.Representations[0].Items[0].TreeRootExpression.FirstOperand.is_a("IfcRectangularPyramid") is_perspective = (
drawing.Representation.Representations[0]
.Items[0]
.TreeRootExpression.FirstOperand.is_a("IfcRectangularPyramid")
)
except AttributeError: except AttributeError:
is_perspective = False is_perspective = False