App: add methods to change import/export module of a registered filetype

This commit is contained in:
wmayer
2020-01-18 15:29:44 +01:00
parent a3622ee49f
commit 120b69c74f
5 changed files with 69 additions and 11 deletions

View File

@@ -29,6 +29,10 @@
#***************************************************************************/
# Registered in Part's Init.py file
FreeCAD.changeImportModule("STEP with colors (*.step *.stp)","Import","ImportGui")
FreeCAD.changeExportModule("STEP with colors (*.step *.stp)","Import","ImportGui")
"""
class ImportWorkbench ( Workbench ):
"Import workbench object"

View File

@@ -32,7 +32,7 @@ FreeCAD.addImportType("BREP format (*.brep *.brp)","Part")
FreeCAD.addExportType("BREP format (*.brep *.brp)","Part")
FreeCAD.addImportType("IGES format (*.iges *.igs)","Part")
FreeCAD.addExportType("IGES format (*.iges *.igs)","Part")
FreeCAD.addImportType("STEP with colors (*.step *.stp)","ImportGui")
FreeCAD.addExportType("STEP with colors (*.step *.stp)","ImportGui")
FreeCAD.addImportType("STEP with colors (*.step *.stp)","Import")
FreeCAD.addExportType("STEP with colors (*.step *.stp)","Import")
FreeCAD.__unit_test__ += [ "TestPartApp" ]