FEM: tetgen exporter, get rid of active document

This commit is contained in:
Bernd Hahnebach
2020-03-22 08:36:28 +01:00
parent 504d2591dd
commit e0049eb19b

View File

@@ -342,8 +342,8 @@ def createMesh():
# exportMeshToTetGenPoly(pnMesh.Mesh,filePath,beVerbose)
if FreeCAD.GuiUp:
Gui.activeDocument().activeView().viewAxometric()
Gui.SendMsgToActiveView("ViewFit")
pnMesh.ViewObject.Document.activeView().viewAxonometric()
pnMesh.ViewObject.Document.activeView().fitAll()
if beVerbose == 1:
Console.PrintMessage("\nScript finished without errors.")