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:
Andrej730
2023-03-30 18:31:39 +05:00
parent 01a62bacd2
commit 1ff6f691ac
6 changed files with 58 additions and 10 deletions
+1
View File
@@ -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")