Point Draft importDXF to Mod/Import/ImpExpDxf

- also add "deprecated" message to DraftUtils.readDXF
This commit is contained in:
wandererfan
2018-05-02 12:29:18 -04:00
committed by wmayer
parent 78b72c6d4e
commit 650fed9795
2 changed files with 5 additions and 4 deletions

View File

@@ -56,6 +56,7 @@ public:
private:
Py::Object readDXF(const Py::Tuple& args)
{
Base::Console().Warning("DraftUtils.readDXF is deprecated. Use Import.readDxf instead.\n");
char* Name;
const char* DocName=0;
bool IgnoreErrors=true;

View File

@@ -1570,8 +1570,8 @@ def open(filename):
doc = FreeCAD.newDocument(docname)
doc.Label = decodeName(docname)
FreeCAD.setActiveDocument(doc.Name)
import DraftUtils
DraftUtils.readDXF(filename)
import Import
Import.readDXF(filename)
def insert(filename,docname):
"called when freecad imports a file"
@@ -1597,8 +1597,8 @@ def insert(filename,docname):
else:
errorDXFLib(gui)
else:
import DraftUtils
DraftUtils.readDXF(filename)
import Import
Import.readDXF(filename)
def getShapes(filename):
"reads a dxf file and returns a list of shapes from its contents"