Report view/es: Difference between revisions

From FreeCAD Documentation
(Created page with "Ciertas propiedades de este panel, como el color del texto y si se muestra automáticamente en caso de advertencias o errores, se pueden configurar en la pestaña {{MenuComman...")
(Created page with "{{Caption|La vista del informe que muestra los mensajes cuando FreeCAD acaba de iniciarse.}}")
Line 9: Line 9:
[[File:FreeCAD_Report_view.png|800px]]
[[File:FreeCAD_Report_view.png|800px]]


{{Caption|The report view showing messages when FreeCAD has just started.}}
{{Caption|La vista del informe que muestra los mensajes cuando FreeCAD acaba de iniciarse.}}


== Mensajes ==
== Mensajes ==

Revision as of 17:08, 15 May 2021

Introducción

La Vista de informe es un panel que muestra los mensajes de texto de los procesos y herramientas de FreeCAD. Está disponible en el menú Vista → Paneles → Vista de informe.

Ciertas propiedades de este panel, como el color del texto y si se muestra automáticamente en caso de advertencias o errores, se pueden configurar en la pestaña General → Ventana de salida del editor de preferencias.

La vista del informe que muestra los mensajes cuando FreeCAD acaba de iniciarse.

Mensajes

See also: Console API, and FreeCAD Scripting Basics.

The report view displays messages from the internal FreeCAD Console class.

  • FreeCAD.Console.PrintMessage("text"), print any sort of informative message, that doesn't imply any misbehavior; for example, print the coordinates of points, the result of a distance calculation, the number of vertices in a shape, etc. By default, in black color.
  • FreeCAD.Console.PrintWarning("text"), print messages that are intended to warn the user about strange behavior in the application. Warnings should be shown when some functionality is missing but the software still works acceptably. By default, in yellow color.
  • FreeCAD.Console.PrintError("text"), print messages that are intended to be error messages, that is, when a critical component is missing that makes a certain operation fail. By default, in red color.
  • FreeCAD.Console.PrintLog("text"), print messages that are going into the logs. These messages could be anything that is valuable to troubleshoot a problem in the future by reading the logs, for example, starting or closing a workbench. By default, in blue color.

These functions can be used from the Python console directly, or from macros and custom workbenches.

Example messages in the report view: a general message, a warning, an error, and a logged message.

Acciones

Right click on the report view shows some commands:

  • Options: logging, warning, error, redirect Python output, redirect Python errors, go to end.
  • Copy: stores the selected text in the clipboard for later pasting; it is disabled if nothing is selected.
  • Select all: selects all text in the report view.
  • Clear: erases all messages in the report view. This is useful if you want to troubleshoot a tool that prints messages to the report view, and want to be sure there are no old messages from previous tools.
  • Save as: save the messages in the report view to a text file.