mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
Clever STAIR_ARROW annotation
Now adding STAIR_ARROW annotation is a bit more clever - if you have IfcStairFlight selected when adding this type of annotation it will automatically: 1) define stair as it's parent; 2) add the stair as it's product; 3) place itself along the stair (it's assumed that stair direction is X+) Example - https://i.imgur.com/Ze9DoK2.png
This commit is contained in:
@@ -321,6 +321,7 @@ class TestAddAnnotation:
|
||||
drawing.get_drawing_group("drawing").should_be_called().will_return("group")
|
||||
ifc.run("group.assign_group", group="group", products=["element"]).should_be_called()
|
||||
collector.assign("obj").should_be_called()
|
||||
drawing.setup_annotation_object("obj", "object_type").should_be_called()
|
||||
drawing.enable_editing("obj").should_be_called()
|
||||
subject.add_annotation(ifc, collector, drawing, drawing="drawing", object_type="object_type")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user