mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 02:31:09 +00:00
fix #5304: Have demo project have Plan/Annotation/REFLECTED_PLAN_VIEW context
This commit is contained in:
@@ -87,6 +87,9 @@ def create_project(
|
|||||||
project.run_context_add_context(
|
project.run_context_add_context(
|
||||||
context_type="Plan", context_identifier="Annotation", target_view="PLAN_VIEW", parent=plan
|
context_type="Plan", context_identifier="Annotation", target_view="PLAN_VIEW", parent=plan
|
||||||
)
|
)
|
||||||
|
project.run_context_add_context(
|
||||||
|
context_type="Plan", context_identifier="Annotation", target_view="REFLECTED_PLAN_VIEW", parent=plan
|
||||||
|
)
|
||||||
|
|
||||||
project.run_root_assign_class(obj=site, ifc_class="IfcSite", context=body)
|
project.run_root_assign_class(obj=site, ifc_class="IfcSite", context=body)
|
||||||
project.run_root_assign_class(obj=building, ifc_class="IfcBuilding", context=body)
|
project.run_root_assign_class(obj=building, ifc_class="IfcBuilding", context=body)
|
||||||
|
|||||||
Reference in New Issue
Block a user