It can be annoying if the view is always changed to a perpendicular view. Sometimes one only wants to change some parameters in the sketch and see the changes in the resulting model. I those situations one has to always change to view back manually. Other CAD software does not force you to always have a perpendicular viewport.
In a document with a Sketch called 'Sketch' it works to paste the following lines in the python console. This resets the view. But i cannot get it to work with a macro.
Code: Select all
a = App.ActiveDocument
g = Gui.ActiveDocument
g.setEdit("Sketch",0)
a.getObject('Sketch').ViewObject.TempoVis.restore()
Is there such a function already implemented somewhere and i just cannot find it?
Wouldn't it be good to set it in preferences or sketch properties if one wants to change the view or not?