mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 06:32:09 +00:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user