Drawing: print message indicating that it is obsolete

This commit is contained in:
vocx-fc
2019-09-08 02:23:19 -05:00
committed by wmayer
parent 5e9891dcb7
commit 256f85678f
4 changed files with 12 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ if(BUILD_GUI)
endif(BUILD_GUI)
set(Drawing_Scripts
README.md
Init.py
DrawingExample.py
DrawingTests.py

View File

@@ -24,3 +24,6 @@
#* *
#* Juergen Riegel 2002 *
#***************************************************************************/
FreeCAD.Console.PrintLog("Drawing became obsolete in 0.17; "
"consider using TechDraw instead.\n")

View File

@@ -41,6 +41,11 @@ class DrawingWorkbench (Workbench):
def Initialize(self):
# load the module
import DrawingGui
def Activated(self):
FreeCAD.Console.PrintWarning("Drawing became obsolete in 0.17; "
"consider using TechDraw instead.\n")
def GetClassName(self):
return "DrawingGui::Workbench"

View File

@@ -0,0 +1,3 @@
Development of the Drawing Workbench stopped in FreeCAD 0.16, and it became obsolete in FreeCAD 0.17, when the TechDraw Workbench was introduced.
The Drawing Workbench is no longer maintained. It is kept in the source tree for compatibility purposes, although there is no guarantee that it will continue working in future versions of FreeCAD. Eventually it may be removed completely.