add method to activate 3d view when setting active object list
This commit is contained in:
@@ -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() );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user