Update ActivePartObject etc. on switching documents, creating new documents, and loading documents in the PartDesign workbench

This commit is contained in:
jrheinlaender
2013-04-18 17:24:33 +04:30
committed by Stefan Tröger
parent 0e6cdbe397
commit e5e05cd489
4 changed files with 56 additions and 26 deletions

View File

@@ -24,7 +24,6 @@
import FreeCADGui
FreeCADGui.activateWorkbench("PartDesignWorkbench")
App.newDocument()
FreeCADGui.runCommand('PartDesign_Body')
# Make the planes properly visible
FreeCADGui.activeDocument().activeView().viewAxometric()
FreeCADGui.SendMsgToActiveView("ViewFit")