FEM: examples, better choose active document for fit view

This commit is contained in:
Bernd Hahnebach
2020-03-22 08:32:40 +01:00
parent 5fc4a26a00
commit c9bca5bd15
11 changed files with 11 additions and 22 deletions

View File

@@ -109,9 +109,8 @@ def setup(doc=None, solvertype="ccxtools"):
doc.recompute()
if FreeCAD.GuiUp:
import FreeCADGui
goem_obj.ViewObject.Document.activeView().viewAxonometric()
FreeCADGui.SendMsgToActiveView("ViewFit")
geom_obj.ViewObject.Document.activeView().fitAll()
# analysis
analysis = ObjectsFem.makeAnalysis(doc, "Analysis")