+ fix initialization order in initFemGui
This commit is contained in:
parent
abd6e8c438
commit
60c8180079
|
@ -75,6 +75,26 @@ void FemGuiExport initFemGui()
|
|||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
Base::Interpreter().loadModule("FemCommands");
|
||||
|
||||
Base::Interpreter().loadModule("_CommandMechanicalShowResult");
|
||||
Base::Interpreter().loadModule("_CommandQuickAnalysis");
|
||||
Base::Interpreter().loadModule("_CommandPurgeFemResults");
|
||||
Base::Interpreter().loadModule("_CommandMechanicalJobControl");
|
||||
Base::Interpreter().loadModule("_CommandFemFromShape");
|
||||
Base::Interpreter().loadModule("_CommandNewMechanicalAnalysis");
|
||||
|
||||
Base::Interpreter().loadModule("MechanicalAnalysis");
|
||||
Base::Interpreter().loadModule("MechanicalMaterial");
|
||||
Base::Interpreter().loadModule("FemBeamSection");
|
||||
Base::Interpreter().loadModule("FemShellThickness");
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
PyErr_SetString(PyExc_ImportError, e.what());
|
||||
return;
|
||||
}
|
||||
|
||||
(void) Py_InitModule("FemGui", FemGui_Import_methods); /* mod name, table ptr */
|
||||
Base::Console().Log("Loading GUI of Fem module... done\n");
|
||||
|
||||
|
@ -102,26 +122,6 @@ void FemGuiExport initFemGui()
|
|||
FemGui::ViewProviderResult ::init();
|
||||
FemGui::ViewProviderResultPython ::init();
|
||||
|
||||
try {
|
||||
Base::Interpreter().loadModule("FemCommands");
|
||||
|
||||
Base::Interpreter().loadModule("_CommandMechanicalShowResult");
|
||||
Base::Interpreter().loadModule("_CommandQuickAnalysis");
|
||||
Base::Interpreter().loadModule("_CommandPurgeFemResults");
|
||||
Base::Interpreter().loadModule("_CommandMechanicalJobControl");
|
||||
Base::Interpreter().loadModule("_CommandFemFromShape");
|
||||
Base::Interpreter().loadModule("_CommandNewMechanicalAnalysis");
|
||||
|
||||
Base::Interpreter().loadModule("MechanicalAnalysis");
|
||||
Base::Interpreter().loadModule("MechanicalMaterial");
|
||||
Base::Interpreter().loadModule("FemBeamSection");
|
||||
Base::Interpreter().loadModule("FemShellThickness");
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
PyErr_SetString(PyExc_ImportError, e.what());
|
||||
return;
|
||||
}
|
||||
|
||||
// register preferences pages
|
||||
new Gui::PrefPageProducer<FemGui::DlgSettingsFemImp> ("FEM");
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user