+ utility to create edges, faces, shells and solids from selection

+fix a couple of selection bugs in SoFCUnifiedSelection node

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5016 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
wmayer
2011-10-14 14:05:28 +00:00
parent 8feb56371d
commit 78b1282a26
10 changed files with 663 additions and 13 deletions

View File

@@ -1251,7 +1251,7 @@ void Application::runCommand(bool bForce, const char* sCmd,...)
free (format);
}
bool Application::runPythonCode(const char* cmd, bool gui)
bool Application::runPythonCode(const char* cmd, bool gui, bool pyexc)
{
if (gui)
d->macroMngr->addLine(MacroManager::Gui,cmd);
@@ -1263,8 +1263,13 @@ bool Application::runPythonCode(const char* cmd, bool gui)
return true;
}
catch (Base::PyException &e) {
e.ReportException();
Base::Console().Error("Stack Trace: %s\n",e.getStackTrace().c_str());
if (pyexc) {
e.ReportException();
Base::Console().Error("Stack Trace: %s\n",e.getStackTrace().c_str());
}
else {
throw; // re-throw to handle in calling instance
}
}
catch (Base::AbortException&) {
}