Draft: remove old DraftFillet class, and make it a redirect

Remove the make function that creates the old object,
its corresponding Gui Command, and the old `DraftFillet.Fillet`
proxy class, which now is a redirection to the new `Fillet`
class defined in `draftobjects.fillet`.

Also change the unit test, and the `draft_test_object` script
to run `Draft.make_fillet`.
This commit is contained in:
vocx-fc
2020-05-04 22:03:36 -05:00
committed by Yorik van Havre
parent 103533de73
commit 7ff41b51a9
6 changed files with 73 additions and 332 deletions

View File

@@ -35,11 +35,11 @@ import math
import FreeCAD as App
import Draft
from FreeCAD import Vector
from draftutils.messages import _msg, _wrn
from FreeCAD import Vector
if App.GuiUp:
import DraftFillet
import FreeCADGui as Gui
@@ -141,13 +141,7 @@ def create_test_file(file_name="draft_test_objects",
line_h_2.ViewObject.DrawStyle = "Dotted"
App.ActiveDocument.recompute()
try:
DraftFillet.makeFillet([line_h_1, line_h_2], 400)
except Exception:
_wrn("Fillet could not be created")
_wrn("Possible cause: at this moment it may need the interface")
rect = Draft.makeRectangle(500, 100)
rect.Placement.Base = Vector(14000, 500)
Draft.make_fillet([line_h_1, line_h_2], 400)
t_xpos += 900
_t = Draft.makeText(["Fillet"], Vector(t_xpos, t_ypos, 0))