From 37baa7a57b5896834bc67a70f510ef730f515b04 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Tue, 18 Feb 2025 20:45:05 +1100 Subject: [PATCH] Fix #5845. Allow non GRAPH_VIEW reference representations. Apparently it's a thing in the docs. If anybody can explain to me how Reference is meant to be used (the example in the docs is really ambiguous) please do :) --- .../ifcopenshell/api/geometry/add_representation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py b/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py index 0e5940f3d4..13d06e59c8 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py +++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py @@ -204,6 +204,7 @@ class Usecase: elif self.settings["context"].ContextIdentifier == "Reference": if self.settings["context"].TargetView == "GRAPH_VIEW": return self.create_structural_reference_representation() + return self.create_variable_representation() elif self.settings["context"].ContextIdentifier == "Profile": return self.create_curve3d_representation() elif self.settings["context"].ContextIdentifier == "SurveyPoints":