Skip to content

Commit d18ad88

Browse files
issue with Beams being returned as DesignCurves -- wip
1 parent 673292d commit d18ad88

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed
6.11 KB
Binary file not shown.

tests/integration/test_design.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3136,5 +3136,3 @@ def test_set_face_color(modeler: Modeler):
31363136
ValueError, match="Invalid color value: Opacity value must be between 0 and 1."
31373137
):
31383138
faces[3].opacity = 255
3139-
3140-

tests/integration/test_design_import.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def test_design_import_with_named_selections(modeler: Modeler):
355355
design = modeler.open_file(Path(FILES_DIR, "NamedSelectionImport.scdocx"))
356356

357357
# Check that there are 29 Named Selections
358-
assert len(design.named_selections) == 6
358+
assert len(design.named_selections) == 7
359359

360360
# Get named selection nozzle1
361361
nozzle1 = design._named_selections["n1"]
@@ -378,3 +378,11 @@ def test_design_import_with_named_selections(modeler: Modeler):
378378
Quantity(11.024, UNITS.inches).m_as(DEFAULT_UNITS.SERVER_LENGTH), abs=1e-3
379379
)
380380
assert p1.design_points[0].value.z.m == pytest.approx(0.0, abs=1e-3)
381+
382+
# Get named selection Beam1
383+
beam1 = design._named_selections["Beam1"]
384+
assert len(beam1.bodies) == 0
385+
assert len(beam1.beams) == 1
386+
387+
beam = beam1.beams[0]
388+
assert beam._name == "B1"

0 commit comments

Comments
 (0)