Std ViewFront/it: Difference between revisions

From FreeCAD Documentation
(Created page with "== Script ==")
(Created page with "La vista frontale può essere impostata dalla Console Python.")
Line 24: Line 24:
== Script ==
== Script ==


The front view can be set from the [[Python console|Python console]].
La vista frontale può essere impostata dalla [[Python console/it|Console Python]].


It is a method of the {{incode|ActiveView}} of the {{incode|ActiveDocument}}. The {{incode|ActiveView}} only exists when the graphical interface is available; it does not exist when FreeCAD is used in purely console mode.
It is a method of the {{incode|ActiveView}} of the {{incode|ActiveDocument}}. The {{incode|ActiveView}} only exists when the graphical interface is available; it does not exist when FreeCAD is used in purely console mode.

Revision as of 17:32, 24 November 2019

Other languages:

Vista frontale

Posizione nel menu
Visualizza → Viste standard → Di fronte
Ambiente
Tutti
Avvio veloce
1
Introdotto nella versione
-
Vedere anche
Vista dall'alto, Vista da destra

Descrizione

Vista di fronte orienta la fotocamera della Vista 3D che guarda verso la parte posteriore dalla parte anteriore, nella direzione dell'asse Y positivo, [0.0, 1.0, 0.0].

La vista frontale imposta la telecamera nella direzione dell'asse Y positivo.

Utilizzo

  • Andare nel menu Visualizza → Viste standard → Di fronte.
  • O premere il pulsante Di fronte.
  • O premere 1 nel tastierino numerico della tastiera.

Script

La vista frontale può essere impostata dalla Console Python.

It is a method of the ActiveView of the ActiveDocument. The ActiveView only exists when the graphical interface is available; it does not exist when FreeCAD is used in purely console mode.

import FreeCADGui as Gui
Gui.ActiveDocument.ActiveView.viewFront()

Gui.ActiveDocument.ActiveView.getViewDirection()