add method to activate 3d view when setting active object list

This commit is contained in:
wmayer
2018-09-12 15:38:28 +02:00
parent 23b0c89b8a
commit 876339b885
6 changed files with 86 additions and 15 deletions

View File

@@ -115,6 +115,7 @@ PartDesign::Body * makeBody(App::Document *doc)
"App.activeDocument().addObject('PartDesign::Body','%s')",
bodyName.c_str() );
Gui::Command::doCommand( Gui::Command::Gui,
"Gui.activateView('Gui::View3DInventor', True)\n"
"Gui.activeView().setActiveObject('%s', App.activeDocument().%s)",
PDBODYKEY, bodyName.c_str() );