From FreeCAD Documentation
Este módulo está contenido en el módulo de FreeCAD y contiene métodos para enviar texto a la consola de salida de FreeCAD y a la barra de estado. Los mensajes tendrán diferente color si son mensajes, advertencias o errores.
Ejemplo:
import FreeCAD
FreeCAD.Console.PrintMessage("Hello World!\n")
GetStatus("Log" or "Msg" or "Wrn" or "Err")
Description: Get the status for either Log, Msg, Wrn or Error for an observer
Returns: a status string.
PrintError(string)
Description: Prints an error message to the output
Returns: nothing
PrintLog(string)
Description: Prints a log message to the output
Returns: nothing
PrintMessage(string)
Description: Prints a message to the output
Returns: nothing
PrintWarning(string)
Description: Prints a warning to the output
Returns: nothing
SetStatus(string)
Description: Set the stats for either Log, Msg, Wrn or Error for an observer
Returns: