mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 19:34:34 +00:00
Fix #4383. Demo library should use Model/Annotation/MODEL_VIEW for text annotations so that they can be used anywhere, not just on plans.
This commit is contained in:
@@ -57,12 +57,12 @@ class LibraryGenerator:
|
||||
target_view="PLAN_VIEW",
|
||||
parent=plan,
|
||||
),
|
||||
"plan_annotation": ifcopenshell.api.run(
|
||||
"model_annotation": ifcopenshell.api.run(
|
||||
"context.add_context",
|
||||
self.file,
|
||||
context_type="Plan",
|
||||
context_type="Model",
|
||||
context_identifier="Annotation",
|
||||
target_view="PLAN_VIEW",
|
||||
target_view="MODEL_VIEW",
|
||||
parent=plan,
|
||||
),
|
||||
}
|
||||
@@ -194,8 +194,8 @@ class LibraryGenerator:
|
||||
))
|
||||
|
||||
representation = self.file.createIfcShapeRepresentation(
|
||||
self.representations["plan_annotation"],
|
||||
self.representations["plan_annotation"].ContextIdentifier,
|
||||
self.representations["model_annotation"],
|
||||
self.representations["model_annotation"].ContextIdentifier,
|
||||
"Annotation2D",
|
||||
items,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user