See #2866. Fix issue where annotation should be able to use 3D coordinates (i.e. Model context type) for elevations and sections where it makes more sense.

This commit is contained in:
Dion Moult
2023-03-20 16:36:38 +11:00
parent 65caa7906d
commit c97e1079e8
4 changed files with 18 additions and 9 deletions
+4
View File
@@ -217,8 +217,12 @@ class TestGetAnnotationContext(NewFile):
context = ifc.createIfcGeometricRepresentationSubContext(
ContextType="Plan", ContextIdentifier="Annotation", TargetView="PLAN_VIEW"
)
context2 = ifc.createIfcGeometricRepresentationSubContext(
ContextType="Model", ContextIdentifier="Annotation", TargetView="ELEVATION_VIEW"
)
tool.Ifc.set(ifc)
assert subject.get_annotation_context("PLAN_VIEW") == context
assert subject.get_annotation_context("ELEVATION_VIEW") == context2
class TestGetBodyContext(NewFile):