From da833590da18a3047b6540d3d97cab80e3fdb5f1 Mon Sep 17 00:00:00 2001 From: Abdun Nur <146203416+anur7@users.noreply.github.com> Date: Thu, 19 Oct 2023 18:42:57 +0200 Subject: [PATCH] Fillet chamfer docstring update (#3768) * fillet and chamfer docstring correction * Add UT --------- Co-authored-by: Samuel Lopez <85613111+Samuelopez-ansys@users.noreply.github.com> Co-authored-by: Samuel Lopez --- _unittest/test_08_Primitives3D.py | 2 ++ pyaedt/modeler/cad/elements3d.py | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/_unittest/test_08_Primitives3D.py b/_unittest/test_08_Primitives3D.py index f6a3375ac3b..d23a7fe61ec 100644 --- a/_unittest/test_08_Primitives3D.py +++ b/_unittest/test_08_Primitives3D.py @@ -681,6 +681,8 @@ def test_43_fillet_and_undo(self): assert o.edges[0].fillet() self.aedtapp._odesign.Undo() assert o.edges[0].fillet() + r = self.create_rectangle(name="MyRect") + assert not r.edges[0].fillet() def test_44_create_polyline_basic_segments(self): prim3D = self.aedtapp.modeler diff --git a/pyaedt/modeler/cad/elements3d.py b/pyaedt/modeler/cad/elements3d.py index b7f82b8f46a..4b3f549022e 100644 --- a/pyaedt/modeler/cad/elements3d.py +++ b/pyaedt/modeler/cad/elements3d.py @@ -69,7 +69,7 @@ class EdgeTypePrimitive(object): @pyaedt_function_handler() def fillet(self, radius=0.1, setback=0.0): - """Add a fillet to the selected edge. + """Add a fillet to the selected edges in 3D/vertices in 2D. Parameters ---------- @@ -98,7 +98,7 @@ def fillet(self, radius=0.1, setback=0.0): if self._object3d.is3d: edge_id_list = [self.id] else: - self._object3d.logger.error("Filet is possible only on a vertex in 2D designs.") + self._object3d.logger.error("Fillet is possible only on a vertex in 2D designs.") return False vArg1 = ["NAME:Selections", "Selections:=", self._object3d.name, "NewPartsModelFlag:=", "Model"] @@ -116,7 +116,7 @@ def fillet(self, radius=0.1, setback=0.0): @pyaedt_function_handler() def chamfer(self, left_distance=1, right_distance=None, angle=45, chamfer_type=0): - """Add a chamfer to the selected edge. + """Add a chamfer to the selected edges in 3D/vertices in 2D. Parameters ----------